Class DefaultSpnegoClientAction

java.lang.Object
org.apache.wss4j.common.spnego.DefaultSpnegoClientAction
All Implemented Interfaces:
PrivilegedAction<byte[]>, SpnegoClientAction

public class DefaultSpnegoClientAction extends Object implements SpnegoClientAction
This class represents a PrivilegedAction implementation to obtain a (SPNEGO) service ticket from a Kerberos Key Distribution Center.
  • Constructor Details

    • DefaultSpnegoClientAction

      public DefaultSpnegoClientAction()
  • Method Details

    • setMutualAuth

      public void setMutualAuth(boolean mutualAuthentication)
      Whether to enable mutual authentication or not.
      Specified by:
      setMutualAuth in interface SpnegoClientAction
    • setServiceName

      public void setServiceName(String serviceName)
      The Service Name
      Specified by:
      setServiceName in interface SpnegoClientAction
    • run

      public byte[] run()
      Obtain a service ticket
      Specified by:
      run in interface PrivilegedAction<byte[]>
      Specified by:
      run in interface SpnegoClientAction
    • getContext

      public GSSContext getContext()
      Get the GSSContext that was created after a service ticket was obtained
      Specified by:
      getContext in interface SpnegoClientAction
    • setUserNameServiceForm

      public void setUserNameServiceForm(boolean isUsernameServiceNameForm)
      Description copied from interface: SpnegoClientAction
      If true - sets the SPN form to "username"
      If false(default) - the SPN form is "hostbased"
      Specified by:
      setUserNameServiceForm in interface SpnegoClientAction
      Parameters:
      isUsernameServiceNameForm - the isUsernameServiceNameForm to set