Interface SpnegoServiceAction

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

public interface SpnegoServiceAction extends PrivilegedAction<byte[]>
This interface represents a PrivilegedAction implementation to validate a received (SPNEGO) ticket to a KDC.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the GSSContext that was created after a service ticket was obtained
    byte[]
    run()
    Validate a service ticket
    void
    setServiceName(String serviceName)
    The Service Name
    void
    setTicket(byte[] ticket)
    Set the ticket to validate
    void
    setUsernameServiceNameForm(boolean isUsernameServiceNameForm)
    If true - sets the SPN form to "username"
    If false(default) - the SPN form is "hostbased"
  • Method Details

    • setTicket

      void setTicket(byte[] ticket)
      Set the ticket to validate
    • setServiceName

      void setServiceName(String serviceName)
      The Service Name
    • setUsernameServiceNameForm

      void setUsernameServiceNameForm(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()
      Validate 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