|
JBoss Remoting 3 3.2.13.GA-redhat-1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.remoting3.security.InetAddressPrincipal
public final class InetAddressPrincipal
A principal representing an IP address.
Constructor Summary | |
---|---|
InetAddressPrincipal(InetAddress inetAddress)
Create a new instance. |
Method Summary | |
---|---|
InetAddressPrincipal |
clone()
Create a clone of this instance. |
boolean |
equals(InetAddressPrincipal other)
Determine whether this instance is equal to another. |
boolean |
equals(Object 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. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public InetAddressPrincipal(InetAddress inetAddress)
inetAddress
- the addressMethod Detail |
---|
public String getName()
getName
in interface Principal
public InetAddress getInetAddress()
public boolean equals(Object other)
equals
in interface Principal
equals
in class Object
other
- the other instance
true
if they are equal, false
otherwisepublic boolean equals(InetAddressPrincipal other)
other
- the other instance
true
if they are equal, false
otherwisepublic int hashCode()
InetAddress
object herein.
hashCode
in interface Principal
hashCode
in class Object
public String toString()
toString
in interface Principal
toString
in class Object
public InetAddressPrincipal clone()
clone
in class Object
|
JBoss Remoting 3 3.2.13.GA-redhat-1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |