com.coveo.saml.SamlResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of saml-client Show documentation
Show all versions of saml-client Show documentation
Dead simple client for obtaining authentication from SAML identity provider
package com.coveo.saml;
import org.opensaml.saml2.core.Assertion;
public class SamlResponse {
private Assertion assertion;
public SamlResponse(Assertion assertion) {
this.assertion = assertion;
}
/**
* Retrieves the {@link Assertion} for the SAML response.
*
* @return The assertion for the SAML response.
*/
public Assertion getAssertion() {
return assertion;
}
/**
* Retrieves the Name ID from the SAML response. This is normally the name of the authenticated
* user.
*
* @return The Name ID from the SAML response.
*/
public String getNameID() {
return assertion.getSubject().getNameID().getValue();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy