Top Description Fields Constructors Methods
waffle.jaas

public Class UserPrincipal

extends Object
implements Principal, Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable, java.security.Principal
Imports
java.io.Serializable, java.security.Principal

User Principal.
Author
dblock[at]dblock[dot]org

Field Summary

Modifier and TypeField and Description
private final String
fqn

The fqn.

private static final long
serialVersionUID

The Constant serialVersionUID.

Constructor Summary

AccessConstructor and Description
public
UserPrincipal(final String
Fully qualified username.
newFqn
)

A user principal.

Method Summary

Modifier and TypeMethod and Description
public boolean
equals(final Object
Principal to compare with.
o
)

Overrides java.lang.Object.equals.

Implements java.security.Principal.equals.

Compares this Principal to the specified object.
public String

Returns:

the name
getName
()

Implements java.security.Principal.getName.

Fully qualified username.
public int
hashCode()

Overrides java.lang.Object.hashCode.

Implements java.security.Principal.hashCode.

Returns a hashcode for this Principal.
Inherited from java.lang.Object:
clonefinalizegetClassnotifynotifyAlltoStringwaitwaitwait

Field Detail

fqnback to summary
private final String fqn

The fqn.

serialVersionUIDback to summary
private static final long serialVersionUID

The Constant serialVersionUID.

Constructor Detail

UserPrincipalback to summary
public UserPrincipal(final String newFqn)

A user principal.

Parameters
newFqn:String

Fully qualified username.

Method Detail

equalsback to summary
public boolean equals(final Object o)

Overrides java.lang.Object.equals.

Implements java.security.Principal.equals.

Doc from java.security.Principal.equals.

Compares this Principal to the specified object. Returns true if the object passed in matches the Principal represented by the implementation of this interface.

Parameters
o:Object

Principal to compare with.

Returns:boolean

true if the Principal passed in is the same as that encapsulated by this Principal, and false otherwise.

Annotations
@Override
getNameback to summary
public String getName()

Implements java.security.Principal.getName.

Fully qualified username.

Returns:String

the name

Annotations
@Override
hashCodeback to summary
public int hashCode()

Overrides java.lang.Object.hashCode.

Implements java.security.Principal.hashCode.

Doc from java.security.Principal.hashCode.

Returns a hashcode for this Principal.

Returns:int

a hashcode for this Principal.

Annotations
@Override