public final class RealmNestedPrincipal extends Object implements Principal, Serializable
Constructor and Description |
---|
RealmNestedPrincipal(String realmName,
Principal nestedPrincipal)
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Determine whether this principal is equal to the given object.
|
boolean |
equals(RealmNestedPrincipal obj)
Determine whether this principal is equal to the given object.
|
String |
getName()
Returns the name of this principal, which is composed of the realm name and the name of the nested principal.
|
Principal |
getNestedPrincipal()
Get the nested principal.
|
<P extends Principal> |
getNestedPrincipal(Class<P> principalClass)
Get the nested principal if it is of the given type class.
|
String |
getRealmName()
Get the realm name.
|
int |
hashCode()
Get the hash code of this principal.
|
String |
toString()
Get this principal as a string.
|
public String getRealmName()
null
)public Principal getNestedPrincipal()
null
)public <P extends Principal> P getNestedPrincipal(Class<P> principalClass)
null
if the nested principal is not of the given typepublic String getName()
public int hashCode()
public boolean equals(Object obj)
public boolean equals(RealmNestedPrincipal obj)
obj
- the objecttrue
if they are equal, false
otherwiseCopyright © 2020 JBoss by Red Hat. All rights reserved.