Package com.spotfire.server.jaas
Class JAASGroupPrincipal
java.lang.Object
com.spotfire.server.jaas.JAASGroupPrincipal
- All Implemented Interfaces:
Serializable
,Principal
This class can be used as a base class for
Principal
implementations representing groups.- Since:
- 3.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionJAASGroupPrincipal
(String groupname) Creates a newJAASGroupPrincipal
instance with the given groupname. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Compares the specified object with thisJAASGroupPrincipal
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
-
JAASGroupPrincipal
Creates a newJAASGroupPrincipal
instance with the given groupname.- Parameters:
groupname
- the groupname- 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 thisJAASGroupPrincipal
instance. The method returnstrue
if the two objects are of the same concrete subclass ofJAASGroupPrincipal
and they both have the same name. Otherwise, the method returnsfalse
. -
toString
The method returns aString
representation of this principal.
-