public class SAMLResponse extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ATTRIBUTE_EMAIL_ADDRESS
Contains the attribute URI used to transmit the email address of the user being authenticated.
|
static String |
ATTRIBUTE_GIVEN_NAME
Contains the attribute URI used to transmit the given name of the user being authenticated.
|
static String |
ATTRIBUTE_GROUP
Contains the attribute URI used to transmit a security group.
|
static String |
ATTRIBUTE_SURNAME
Contains the attribute URI used to transmit the surname of the user being authenticated.
|
Constructor and Description |
---|
SAMLResponse(String issuer,
String fingerprint,
String nameId,
sirius.kernel.commons.MultiMap<String,String> attributes)
Creates a new SAML response.
|
Modifier and Type | Method and Description |
---|---|
Collection<String> |
getAttribute(String name)
Returns all attributes which were submitted for the given attribute URI.
|
String |
getAttributeValue(String name)
Returns the first attribute value submitted for the given attribute URI.
|
String |
getFingerprint()
Returns the fingerprint of the certificate which was used to sign the response.
|
String |
getIssuer()
Returns the issuer of the assertion.
|
String |
getNameId()
Returns the username or id which has been authenticated.
|
public static final String ATTRIBUTE_GROUP
public static final String ATTRIBUTE_GIVEN_NAME
public static final String ATTRIBUTE_SURNAME
public static final String ATTRIBUTE_EMAIL_ADDRESS
public SAMLResponse(String issuer, String fingerprint, String nameId, sirius.kernel.commons.MultiMap<String,String> attributes)
issuer
- the issuer which created the SAML responsefingerprint
- the fingerprint of the certificate which was used to sign the responsenameId
- the name of the userattributes
- the attributes within the Assertionpublic String getIssuer()
public String getFingerprint()
public String getNameId()
@Nonnull public Collection<String> getAttribute(String name)
name
- the name or attribute URICopyright © 2018. All rights reserved.