|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Objectnet.sourceforge.spnego.SpnegoPrincipal
public final class SpnegoPrincipal
This class encapsulates a KerberosPrincipal.
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
| Field Summary | |
|---|---|
private GSSCredential |
delegatedCred
|
private KerberosPrincipal |
kerberosPrincipal
|
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.security.Principal |
|---|
equals |
| Field Detail |
|---|
private final transient KerberosPrincipal kerberosPrincipal
private final transient GSSCredential delegatedCred
| Constructor Detail |
|---|
public SpnegoPrincipal(String name)
name - the principal name
public SpnegoPrincipal(String name,
int nameType)
name - the principal namenameType - the name type of the principal
public SpnegoPrincipal(String name,
int nameType,
GSSCredential delegCred)
name - the principal namenameType - the name type of the principaldelegCred - this principal's delegated credential (if any)| Method Detail |
|---|
public GSSCredential getDelegatedCredential()
public String getName()
getName in interface Principalpublic int getNameType()
public String getRealm()
public int hashCode()
hashCode in interface PrincipalhashCode in class Objectpublic String toString()
toString in interface PrincipaltoString in class Object
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||