|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wss4j.dom.message.token.BinarySecurity
org.apache.wss4j.dom.message.token.KerberosSecurity
public class KerberosSecurity
Kerberos Security Token.
| Field Summary |
|---|
| Fields inherited from class org.apache.wss4j.dom.message.token.BinarySecurity |
|---|
BASE64_ENCODING, TOKEN_BST, TOKEN_KI |
| Constructor Summary | |
|---|---|
KerberosSecurity(Document doc)
This constructor creates a new Kerberos element. |
|
KerberosSecurity(Element elem,
BSPEnforcer bspEnforcer)
This constructor creates a new Kerberos token object and initializes it from the data contained in the element. |
|
| Method Summary | |
|---|---|
SecretKey |
getSecretKey()
Get the SecretKey associated with the service principal |
boolean |
isGssV5ApReq()
Return true if this token is a Kerberos GSS V5 AP REQ token |
static boolean |
isKerberosToken(String valueType)
Return true if the valueType represents a Kerberos Token |
boolean |
isV5ApReq()
Return true if this token is a Kerberos V5 AP REQ token |
void |
retrieveServiceTicket(CallbackHandler callbackHandler)
Retrieve a service ticket from a KDC using the Kerberos JAAS module, and set it in this BinarySecurityToken. |
void |
retrieveServiceTicket(String jaasLoginModuleName,
CallbackHandler callbackHandler,
String serviceName)
Retrieve a service ticket from a KDC using the Kerberos JAAS module, and set it in this BinarySecurityToken. |
void |
retrieveServiceTicket(String jaasLoginModuleName,
CallbackHandler callbackHandler,
String serviceName,
boolean isUsernameServiceNameForm)
|
void |
retrieveServiceTicket(String jaasLoginModuleName,
CallbackHandler callbackHandler,
String serviceName,
boolean isUsernameServiceNameForm,
boolean requestCredDeleg)
|
void |
retrieveServiceTicket(String jaasLoginModuleName,
CallbackHandler callbackHandler,
String serviceName,
boolean isUsernameServiceNameForm,
boolean requestCredDeleg,
GSSCredential delegatedCredential)
|
| Methods inherited from class org.apache.wss4j.dom.message.token.BinarySecurity |
|---|
addWSSENamespace, addWSUNamespace, equals, getElement, getEncodingType, getFirstNode, getID, getToken, getValueType, hashCode, setEncodingType, setID, setToken, setValueType, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public KerberosSecurity(Element elem,
BSPEnforcer bspEnforcer)
throws WSSecurityException
elem - the element containing the Kerberos token databspEnforcer - a BSPEnforcer instance to enforce BSP rules
WSSecurityExceptionpublic KerberosSecurity(Document doc)
doc - | Method Detail |
|---|
public boolean isV5ApReq()
public boolean isGssV5ApReq()
public void retrieveServiceTicket(CallbackHandler callbackHandler)
throws WSSecurityException
callbackHandler - a CallbackHandler instance to retrieve a password (optional),
JAAS Login Module name (required) + service name (required)
WSSecurityException
public void retrieveServiceTicket(String jaasLoginModuleName,
CallbackHandler callbackHandler,
String serviceName)
throws WSSecurityException
jaasLoginModuleName - the JAAS Login Module name to usecallbackHandler - a CallbackHandler instance to retrieve a password (optional)serviceName - the desired Kerberized service
WSSecurityException
public void retrieveServiceTicket(String jaasLoginModuleName,
CallbackHandler callbackHandler,
String serviceName,
boolean isUsernameServiceNameForm)
throws WSSecurityException
WSSecurityException
public void retrieveServiceTicket(String jaasLoginModuleName,
CallbackHandler callbackHandler,
String serviceName,
boolean isUsernameServiceNameForm,
boolean requestCredDeleg)
throws WSSecurityException
WSSecurityException
public void retrieveServiceTicket(String jaasLoginModuleName,
CallbackHandler callbackHandler,
String serviceName,
boolean isUsernameServiceNameForm,
boolean requestCredDeleg,
GSSCredential delegatedCredential)
throws WSSecurityException
WSSecurityExceptionpublic SecretKey getSecretKey()
public static boolean isKerberosToken(String valueType)
valueType - the valueType of the token
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||