Class RolePrincipal
java.lang.Object
javax.wbem.client.RolePrincipal
- All Implemented Interfaces:
Principal
-
Constructor Summary
ConstructorsConstructorDescriptionRolePrincipal
(String pRole) This constructor accepts the role name.RolePrincipal
(String pRole, String pHost) This constructor accepts the role name and host name. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Theequals
method checks if the specified principal is the same principal as this object.Get the host for which the principal uses to authenticate.getName()
Return the name of this principal identity; that is, return the login name.int
hashCode()
ThehashCode()
method returns an integer hash code to represent this principal.toString()
ThetoString()
method returns a string representation of the principal suitable for displaying in messages.
-
Constructor Details
-
RolePrincipal
This constructor accepts the role name.- Parameters:
pRole
- The role name.
-
RolePrincipal
-
-
Method Details
-
equals
Theequals
method checks if the specified principal is the same principal as this object. The principals are equal if the specified object is an instance ofRolePrincipal
and the user name and host name are the same. -
getHostName
Get the host for which the principal uses to authenticate.- Returns:
- The host name.
-
getName
-
hashCode
-
toString
ThetoString()
method returns a string representation of the principal suitable for displaying in messages. It should not be used for making authorization checks.
-