Package org.jboss.remoting3.security
Class InetAddressPrincipal
- java.lang.Object
-
- org.jboss.remoting3.security.InetAddressPrincipal
-
-
Constructor Summary
Constructors Constructor Description InetAddressPrincipal(InetAddress inetAddress)
Create a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InetAddressPrincipal
clone()
Create a clone of this instance.boolean
equals(Object other)
Determine whether this instance is equal to another.boolean
equals(InetAddressPrincipal other)
Determine whether this instance is equal to another.InetAddress
getInetAddress()
Get the IP address of this principal.String
getName()
Get the name of this principal; it will be the string representation of the IP address.int
hashCode()
Get the hash code for this instance.String
toString()
Get a human-readable representation of this principal.
-
-
-
Constructor Detail
-
InetAddressPrincipal
public InetAddressPrincipal(InetAddress inetAddress)
Create a new instance.- Parameters:
inetAddress
- the address
-
-
Method Detail
-
getName
public String getName()
Get the name of this principal; it will be the string representation of the IP address.
-
getInetAddress
public InetAddress getInetAddress()
Get the IP address of this principal.- Returns:
- the address
-
equals
public boolean equals(Object other)
Determine whether this instance is equal to another.
-
equals
public boolean equals(InetAddressPrincipal other)
Determine whether this instance is equal to another.- Parameters:
other
- the other instance- Returns:
true
if they are equal,false
otherwise
-
hashCode
public int hashCode()
Get the hash code for this instance. It will be equal to the hash code of theInetAddress
object herein.
-
toString
public String toString()
Get a human-readable representation of this principal.
-
clone
public InetAddressPrincipal clone()
Create a clone of this instance.
-
-