Package org.jboss.as.controller.security
Class InetAddressPrincipal
java.lang.Object
org.jboss.as.controller.security.InetAddressPrincipal
- All Implemented Interfaces:
Serializable,Cloneable,Principal
public final class InetAddressPrincipal
extends Object
implements Principal, Cloneable, Serializable
- Author:
- Kabir Khan
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Create a clone of this instance.booleanDetermine whether this instance is equal to another.booleanequals(InetAddressPrincipal other) Determine whether this instance is equal to another.Get the IP address of this principal.getName()Get the name of this principal; it will be the string representation of the IP address.inthashCode()Get the hash code for this instance.toString()Get a human-readable representation of this principal.
-
Constructor Details
-
InetAddressPrincipal
Create a new instance.- Parameters:
inetAddress- the address
-
-
Method Details
-
getName
Get the name of this principal; it will be the string representation of the IP address. -
getInetAddress
Get the IP address of this principal.- Returns:
- the address
-
equals
Determine whether this instance is equal to another. -
equals
Determine whether this instance is equal to another.- Parameters:
other- the other instance- Returns:
trueif they are equal,falseotherwise
-
hashCode
public int hashCode()Get the hash code for this instance. It will be equal to the hash code of theInetAddressobject herein. -
toString
Get a human-readable representation of this principal. -
clone
Create a clone of this instance.
-