Package com.spotfire.server.jaas
Class JAASUserPrincipal
java.lang.Object
com.spotfire.server.jaas.JAASUserPrincipal
- All Implemented Interfaces:
Serializable
,Principal
This class can be used as a base class for
Principal
implementations representing users.- Since:
- 3.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionJAASUserPrincipal
(String username) Creates a newJAASUserPrincipal
instance with the given username. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Compares the specified object with thisJAASUserPrincipal
instance.getName()
This method returns the name of the principal.int
hashCode()
Returns the hash code value for the principal.toString()
The method returns aString
representation of this principal.
-
Constructor Details
-
JAASUserPrincipal
Creates a newJAASUserPrincipal
instance with the given username.- Parameters:
username
- the username- Since:
- 3.0
-
-
Method Details
-
getName
This method returns the name of the principal. -
hashCode
public int hashCode()Returns the hash code value for the principal. The returned hash code is the same as the hash code for theString
containing the name of the principal. -
equals
Compares the specified object with thisJAASUserPrincipal
instance. The method returnstrue
if the two objects are of the same concrete subclass ofJAASUserPrincipal
and they both have the same name. Otherwise, the method returnsfalse
. -
toString
The method returns aString
representation of this principal.
-