Constructor and Description |
---|
InetAddressPrincipal(InetAddress inetAddress)
Create a new instance.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public InetAddressPrincipal(InetAddress inetAddress)
inetAddress
- the addresspublic String getName()
public InetAddress getInetAddress()
public boolean equals(Object other)
public boolean equals(InetAddressPrincipal other)
other
- the other instancetrue
if they are equal, false
otherwisepublic int hashCode()
InetAddress
object herein.public String toString()
public InetAddressPrincipal clone()
Copyright © 2017 JBoss by Red Hat. All rights reserved.