Interface KerberosTokenDecoder


public interface KerberosTokenDecoder
This interface defines a pluggable way to obtain a session key given an AP-REQ Kerberos token and a Subject. The session key is needed on the receiving side when it is used for message signature or encryption. A default implementation is not shipped with WSS4J due to a dependency on internal APIs or ASN1 parsers.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Clear all internal information
    byte[]
    Get the session key from the token
    void
    Set the Subject
    void
    setToken(byte[] token)
    Set the AP-REQ Kerberos Token
  • Method Details

    • setToken

      void setToken(byte[] token)
      Set the AP-REQ Kerberos Token
      Parameters:
      token - the AP-REQ Kerberos Token
    • setSubject

      void setSubject(Subject subject)
      Set the Subject
      Parameters:
      subject - the Subject
    • getSessionKey

      byte[] getSessionKey() throws KerberosTokenDecoderException
      Get the session key from the token
      Returns:
      the session key from the token
      Throws:
      KerberosTokenDecoderException
    • clear

      void clear()
      Clear all internal information