Class SAMLAuthenticationToken

java.lang.Object
org.codice.ddf.security.handler.BaseAuthenticationToken
org.codice.ddf.security.handler.SAMLAuthenticationToken
All Implemented Interfaces:
Serializable, org.apache.shiro.authc.AuthenticationToken

public class SAMLAuthenticationToken extends BaseAuthenticationToken
See Also:
  • Constructor Details

    • SAMLAuthenticationToken

      public SAMLAuthenticationToken(Object principal, org.apache.shiro.subject.PrincipalCollection token, String ip)
      Constructor that only allows SecurityToken objects to be used as the credentials.
      Parameters:
      principal - represents the
      token -
  • Method Details

    • getSAMLTokenAsElement

      public Element getSAMLTokenAsElement()
      Returns the SAML token as a DOM Element.
      Returns:
      the SAML token as a DOM element or null if it doesn't exist
    • getCredentialsAsString

      public String getCredentialsAsString()
      Overrides:
      getCredentialsAsString in class BaseAuthenticationToken