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 newJAASGroupPrincipalinstance with the given groupname. -
Method Summary
Modifier and TypeMethodDescriptionbooleanCompares the specified object with thisJAASGroupPrincipalinstance.getName()This method returns the name of the principal.inthashCode()Returns the hash code value for the principal.toString()The method returns aStringrepresentation of this principal.
-
Constructor Details
-
JAASGroupPrincipal
Creates a newJAASGroupPrincipalinstance 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 theStringcontaining the name of the principal. -
equals
Compares the specified object with thisJAASGroupPrincipalinstance. The method returnstrueif the two objects are of the same concrete subclass ofJAASGroupPrincipaland they both have the same name. Otherwise, the method returnsfalse. -
toString
The method returns aStringrepresentation of this principal.
-