Class KerberosClient
- java.lang.Object
-
- org.apache.cxf.ws.security.kerberos.KerberosClient
-
- All Implemented Interfaces:
Configurable
public class KerberosClient extends Object implements Configurable
A class that obtains a ticket from a KDC and wraps it in a SecurityToken object.
-
-
Constructor Summary
Constructors Constructor Description KerberosClient()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.apache.wss4j.dom.message.token.KerberosSecuritycreateKerberosSecurity()StringgetBeanName()Get the configurable object's Bean nameCallbackHandlergetCallbackHandler()Get the CallbackHandler to use with the LoginContextStringgetContextName()Get the JAAS Login context name to use.StringgetServiceName()Get the name of the service to use when contacting the KDC.booleanisRequestCredentialDelegation()booleanisUseDelegatedCredential()booleanisUsernameServiceNameForm()SecurityTokenrequestSecurityToken()voidsetCallbackHandler(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)
-
-
-
Method Detail
-
getBeanName
public String getBeanName()
Description copied from interface:ConfigurableGet the configurable object's Bean name- Specified by:
getBeanNamein interfaceConfigurable- Returns:
- the bean name
-
getContextName
public String getContextName()
Get the JAAS Login context name to use.- Returns:
- the JAAS Login context name to use
-
setContextName
public void setContextName(String contextName)
Set the JAAS Login context name to use.- Parameters:
contextName- the JAAS Login context name to use
-
getCallbackHandler
public CallbackHandler getCallbackHandler()
Get the CallbackHandler to use with the LoginContext- Returns:
- the CallbackHandler to use with the LoginContext
-
setCallbackHandler
public void setCallbackHandler(CallbackHandler callbackHandler)
Set the CallbackHandler to use with the LoginContext. It can be null.- Parameters:
callbackHandler- the CallbackHandler to use with the LoginContext
-
setServiceName
public void setServiceName(String serviceName)
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
public String 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
public SecurityToken requestSecurityToken() throws Exception
- 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)
-
-