Class SamlToken
java.lang.Object
org.elasticsearch.xpack.security.authc.saml.SamlToken
- All Implemented Interfaces:
org.elasticsearch.xpack.core.security.authc.AuthenticationToken
public class SamlToken
extends Object
implements org.elasticsearch.xpack.core.security.authc.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.-
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 interfaceorg.elasticsearch.xpack.core.security.authc.AuthenticationToken
-
credentials
- Specified by:
credentialsin interfaceorg.elasticsearch.xpack.core.security.authc.AuthenticationToken
-
clearCredentials
public void clearCredentials()- Specified by:
clearCredentialsin interfaceorg.elasticsearch.xpack.core.security.authc.AuthenticationToken
-
getContent
public byte[] getContent() -
getAllowedSamlRequestIds
-
getAuthenticatingRealm
-
toString
-