public final class SpnegoPrincipal extends Object implements Principal
This class also has a reference to the client's/requester's
delegated credential (if any). See the DelegateServletRequest
documentation for more details.
Also, see the delegation examples at http://spnego.sourceforge.net
| Modifier and Type | Field and Description |
|---|---|
private GSSCredential |
delegatedCred |
private KerberosPrincipal |
kerberosPrincipal |
| Constructor and Description |
|---|
SpnegoPrincipal(String name)
Constructs a SpnegoPrincipal from the provided String input.
|
SpnegoPrincipal(String name,
int nameType)
Constructs a SpnegoPrincipal from the provided String input
and name type input.
|
SpnegoPrincipal(String name,
int nameType,
GSSCredential delegCred)
Constructs a SpnegoPrincipal from the provided String input
and name type input.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object object) |
GSSCredential |
getDelegatedCredential()
Returns this Principal's delegated credential or null.
|
String |
getName() |
int |
getNameType()
Returns the name type of the KerberosPrincipal.
|
String |
getRealm()
Returns the realm component of this Kerberos principal.
|
int |
hashCode() |
String |
toString() |
private final transient KerberosPrincipal kerberosPrincipal
private final transient GSSCredential delegatedCred
public SpnegoPrincipal(String name)
name - the principal namepublic SpnegoPrincipal(String name, int nameType)
name - the principal namenameType - the name type of the principalpublic SpnegoPrincipal(String name, int nameType, GSSCredential delegCred)
name - the principal namenameType - the name type of the principaldelegCred - this principal's delegated credential (if any)public GSSCredential getDelegatedCredential()
public int getNameType()
public String getRealm()
public int hashCode()