Interface SpnegoClientAction

  • All Superinterfaces:
    PrivilegedAction<byte[]>
    All Known Implementing Classes:
    DefaultSpnegoClientAction

    public interface SpnegoClientAction
    extends PrivilegedAction<byte[]>
    This interface represents a PrivilegedAction implementation to obtain a (SPNEGO) service ticket from a Kerberos Key Distribution Center.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      GSSContext getContext()
      Get the GSSContext that was created after a service ticket was obtained
      byte[] run()
      Obtain a service ticket
      void setMutualAuth​(boolean mutualAuthentication)
      Whether to enable mutual authentication or not.
      void setServiceName​(String serviceName)
      The Service Name
      void setUserNameServiceForm​(boolean isUsernameServiceNameForm)
      If true - sets the SPN form to "username"
      If false(default) - the SPN form is "hostbased"
    • Method Detail

      • setMutualAuth

        void setMutualAuth​(boolean mutualAuthentication)
        Whether to enable mutual authentication or not.
      • setServiceName

        void setServiceName​(String serviceName)
        The Service Name
      • setUserNameServiceForm

        void setUserNameServiceForm​(boolean isUsernameServiceNameForm)
        If true - sets the SPN form to "username"
        If false(default) - the SPN form is "hostbased"
        Parameters:
        isUsernameServiceNameForm - the isUsernameServiceNameForm to set
      • run

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

        GSSContext getContext()
        Get the GSSContext that was created after a service ticket was obtained