public class KerberosSecurity extends BinarySecurity
BASE64_ENCODING, element, TOKEN_BST, TOKEN_KI| Constructor and Description |
|---|
KerberosSecurity(Document doc)
This constructor creates a new Kerberos element.
|
KerberosSecurity(Element elem)
This constructor creates a new Kerberos token object and initializes
it from the data contained in the element.
|
KerberosSecurity(Element elem,
boolean bspCompliant)
This constructor creates a new Kerberos token object and initializes
it from the data contained in the element.
|
| Modifier and Type | Method and Description |
|---|---|
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(String jaasLoginModuleName,
CallbackHandler callbackHandler,
String serviceName)
Retrieve a service ticket from a KDC using the Kerberos JAAS module, and set it in this
BinarySecurityToken.
|
addWSSENamespace, addWSUNamespace, equals, getElement, getEncodingType, getFirstNode, getID, getToken, getValueType, hashCode, setEncodingType, setID, setToken, setValueType, toStringpublic KerberosSecurity(Element elem) throws WSSecurityException
elem - the element containing the Kerberos token dataWSSecurityExceptionpublic KerberosSecurity(Element elem, boolean bspCompliant) throws WSSecurityException
elem - the element containing the Kerberos token databspCompliant - Whether the token is processed according to the BSP specWSSecurityExceptionpublic KerberosSecurity(Document doc)
doc - public boolean isV5ApReq()
public boolean isGssV5ApReq()
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 serviceWSSecurityExceptionpublic SecretKey getSecretKey()
public static boolean isKerberosToken(String valueType)
valueType - the valueType of the tokenCopyright © 2004–2013 The Apache Software Foundation. All rights reserved.