Class KerberosClient
java.lang.Object
org.apache.cxf.ws.security.kerberos.KerberosClient
- All Implemented Interfaces:
org.apache.cxf.configuration.Configurable
A class that obtains a ticket from a KDC and wraps it in a SecurityToken object.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.wss4j.dom.message.token.KerberosSecurityGet the CallbackHandler to use with the LoginContextGet the JAAS Login context name to use.Get the name of the service to use when contacting the KDC.booleanbooleanbooleanvoidsetCallbackHandler(CallbackHandler callbackHandler) Set the CallbackHandler to use with the LoginContext.voidsetContextName(String contextName) Set the JAAS Login context name to use.voidsetRequestCredentialDelegation(boolean requestCredentialDelegation) voidsetServiceName(String serviceName) The name of the service to use when contacting the KDC.voidsetUseDelegatedCredential(boolean useDelegatedCredential) voidsetUsernameServiceNameForm(boolean usernameServiceNameForm)
-
Constructor Details
-
KerberosClient
public KerberosClient()
-
-
Method Details
-
getBeanName
- Specified by:
getBeanNamein interfaceorg.apache.cxf.configuration.Configurable
-
getContextName
Get the JAAS Login context name to use.- Returns:
- the JAAS Login context name to use
-
setContextName
Set the JAAS Login context name to use.- Parameters:
contextName- the JAAS Login context name to use
-
getCallbackHandler
Get the CallbackHandler to use with the LoginContext- Returns:
- the CallbackHandler to use with the LoginContext
-
setCallbackHandler
Set the CallbackHandler to use with the LoginContext. It can be null.- Parameters:
callbackHandler- the CallbackHandler to use with the LoginContext
-
setServiceName
The name of the service to use when contacting the KDC.- Parameters:
serviceName- the name of the service to use when contacting the KDC
-
getServiceName
Get the name of the service to use when contacting the KDC.- Returns:
- the name of the service to use when contacting the KDC
-
requestSecurityToken
- Throws:
Exception
-
createKerberosSecurity
protected org.apache.wss4j.dom.message.token.KerberosSecurity createKerberosSecurity() -
isUsernameServiceNameForm
public boolean isUsernameServiceNameForm() -
setUsernameServiceNameForm
public void setUsernameServiceNameForm(boolean usernameServiceNameForm) -
isRequestCredentialDelegation
public boolean isRequestCredentialDelegation() -
setRequestCredentialDelegation
public void setRequestCredentialDelegation(boolean requestCredentialDelegation) -
isUseDelegatedCredential
public boolean isUseDelegatedCredential() -
setUseDelegatedCredential
public void setUseDelegatedCredential(boolean useDelegatedCredential)
-