java.lang.Object
org.apereo.cas.authentication.credential.AbstractCredential
org.apereo.cas.support.spnego.authentication.principal.SpnegoCredential
All Implemented Interfaces:
Serializable, org.apereo.cas.authentication.Credential

public class SpnegoCredential extends org.apereo.cas.authentication.credential.AbstractCredential
Credential that are a holder for SPNEGO init token.
Since:
3.1
See Also:
  • Field Summary

    Fields inherited from interface org.apereo.cas.authentication.Credential

    CREDENTIAL_TYPE_ATTRIBUTE, UNKNOWN_ID
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    SpnegoCredential(byte[] initToken)
     
    SpnegoCredential(byte[] initToken, byte[] nextToken, org.apereo.cas.authentication.principal.Principal principal, boolean isNtlm)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
     
    byte[]
    The SPNEGO Init Token.
    byte[]
    The SPNEGO Next Token.
    org.apereo.cas.authentication.principal.Principal
    The Principal.
    int
     
    boolean
    The authentication type should be Kerberos or NTLM.
    void
    setInitToken(byte[] initToken)
    The SPNEGO Init Token.
    void
    setNextToken(byte[] nextToken)
    The SPNEGO Next Token.
    void
    setNtlm(boolean isNtlm)
    The authentication type should be Kerberos or NTLM.
    void
    setPrincipal(org.apereo.cas.authentication.principal.Principal principal)
    The Principal.
     

    Methods inherited from class org.apereo.cas.authentication.credential.AbstractCredential

    getCredentialMetadata, isValid, setCredentialMetadata, validate

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • SpnegoCredential

      public SpnegoCredential(byte[] initToken)
    • SpnegoCredential

      public SpnegoCredential()
    • SpnegoCredential

      public SpnegoCredential(byte[] initToken, byte[] nextToken, org.apereo.cas.authentication.principal.Principal principal, boolean isNtlm)
  • Method Details

    • getId

      public String getId()
    • toString

      public String toString()
      Overrides:
      toString in class org.apereo.cas.authentication.credential.AbstractCredential
    • setInitToken

      public void setInitToken(byte[] initToken)
      The SPNEGO Init Token.
    • setNextToken

      public void setNextToken(byte[] nextToken)
      The SPNEGO Next Token.
    • setPrincipal

      public void setPrincipal(org.apereo.cas.authentication.principal.Principal principal)
      The Principal.
    • setNtlm

      public void setNtlm(boolean isNtlm)
      The authentication type should be Kerberos or NTLM.
    • getInitToken

      public byte[] getInitToken()
      The SPNEGO Init Token.
    • getNextToken

      public byte[] getNextToken()
      The SPNEGO Next Token.
    • getPrincipal

      public org.apereo.cas.authentication.principal.Principal getPrincipal()
      The Principal.
    • isNtlm

      public boolean isNtlm()
      The authentication type should be Kerberos or NTLM.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class org.apereo.cas.authentication.credential.AbstractCredential
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class org.apereo.cas.authentication.credential.AbstractCredential