Class SpnegoPrincipal
java.lang.Object
org.silverpeas.sso.kerberos.spnego.SpnegoPrincipal
- All Implemented Interfaces:
Principal
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
- Author:
- Darwin V. Felix
-
Constructor Summary
ConstructorsConstructorDescriptionSpnegoPrincipal(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
-
Constructor Details
-
SpnegoPrincipal
Constructs a SpnegoPrincipal from the provided String input and name type input.- Parameters:
name- the principal namenameType- the name type of the principal
-
SpnegoPrincipal
Constructs a SpnegoPrincipal from the provided String input and name type input.- Parameters:
name- the principal namenameType- the name type of the principaldelegCred- this principal's delegated credential (if any)
-
-
Method Details
-
getDelegatedCredential
Returns this Principal's delegated credential or null.- Returns:
- Principal's delegated credential or null.
-
getName
-
getNameType
public int getNameType()Returns the name type of the KerberosPrincipal.- Returns:
- name type of the KerberosPrincipal
-
getRealm
Returns the realm component of this Kerberos principal.- Returns:
- realm component of this Kerberos principal
-
hashCode
public int hashCode() -
equals
-
toString
-