Module org.elasticsearch.security
Class SamlToken
java.lang.Object
org.elasticsearch.xpack.security.authc.saml.SamlToken
- All Implemented Interfaces:
AuthenticationToken
A very lightweight
AuthenticationToken to hold SAML content.
Due to the nature of SAML, it is impossible to know the principal for the token
until it is parsed and validated, so this token always returns a placeholder value.- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SamlToken
public SamlToken(byte[] content, List<String> allowedSamlRequestIds, @Nullable String authenticatingRealm) - Parameters:
content- The content of the SAML message. This should be raw XML. In particular it should not be base64 encoded.allowedSamlRequestIds- The request Ids for the authentication requests this SAML response is allowed to be in response to.authenticatingRealm- The realm that should autenticate this SAML message.
-
-
Method Details
-
principal
- Specified by:
principalin interfaceAuthenticationToken
-
credentials
- Specified by:
credentialsin interfaceAuthenticationToken
-
clearCredentials
public void clearCredentials()- Specified by:
clearCredentialsin interfaceAuthenticationToken
-
getContent
public byte[] getContent() -
getAllowedSamlRequestIds
-
getAuthenticatingRealm
-
toString
-