|
|||||||
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 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)Method Detail |
---|
public GSSCredential getDelegatedCredential()
public String getName()
getName
in interface Principal
public int getNameType()
public String getRealm()
public int hashCode()
hashCode
in interface Principal
hashCode
in class Object
public String toString()
toString
in interface Principal
toString
in class Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |