Class KerberosClient

java.lang.Object
org.apache.cxf.ws.security.kerberos.KerberosClient
All Implemented Interfaces:
org.apache.cxf.configuration.Configurable

public class KerberosClient extends Object implements org.apache.cxf.configuration.Configurable
A class that obtains a ticket from a KDC and wraps it in a SecurityToken object.
  • Constructor Details

    • KerberosClient

      public KerberosClient()
  • Method Details

    • getBeanName

      public String getBeanName()
      Specified by:
      getBeanName in interface org.apache.cxf.configuration.Configurable
    • 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)