public class SsoContext extends Object implements Serializable
Constructor and Description |
---|
SsoContext(AttributeMap subjectAttributes,
AssertionType ssoAssertion,
List<AssertionType> otherValidAssertions,
String idpPartnerEntityId,
String targetResourceUrl)
Create a new SsoContext.
|
SsoContext(AttributeMap subjectAttributes,
AssertionType ssoAssertion,
List<AssertionType> otherValidAssertions,
String idpPartnerEntityId,
String targetResourceUrl,
String authnCtx,
Date authnInstant)
Create a new SsoContext.
|
Modifier and Type | Method and Description |
---|---|
String |
getAuthenticationContext()
Gets the authentication context (class reference URI) or authentication method of the assertion.
|
Date |
getAuthenticationInstant()
Gets the authentication instant.
|
String |
getIdpPartnerEntityId()
Gets the entity id of the IDP who authenticated the user.
|
List<AssertionType> |
getOtherValidAssertions()
If more than one assertion was included by the IdP, the additional valid assertion can be accessed by
this method.
|
AssertionType |
getSsoAssertion()
The raw assertion that was relied upon for SSO.
|
Map |
getSubjectAttributes()
Deprecated.
Please use
getSubjectAttrs() instead. |
Map<String,AttributeValue> |
getSubjectAttrs()
Gets the attributes resulting from the PingFederate server's subject and attribute mapping process.
|
String |
getTargetResourceUrl()
The URL that is the end target destination of the SSO.
|
void |
setTargetResourceUrl(String targetResourceUrl)
Set the target resource URL.
|
public SsoContext(AttributeMap subjectAttributes, AssertionType ssoAssertion, List<AssertionType> otherValidAssertions, String idpPartnerEntityId, String targetResourceUrl)
public SsoContext(AttributeMap subjectAttributes, AssertionType ssoAssertion, List<AssertionType> otherValidAssertions, String idpPartnerEntityId, String targetResourceUrl, String authnCtx, Date authnInstant)
@Deprecated public Map getSubjectAttributes()
getSubjectAttrs()
instead.public Map<String,AttributeValue> getSubjectAttrs()
AttributeValue
public String getIdpPartnerEntityId()
public String getTargetResourceUrl()
public void setTargetResourceUrl(String targetResourceUrl)
An SpAuthenticationAdapter implementation can modify the targetResourceUrl during the
SpAuthenticationAdapter.createAuthN(org.sourceid.saml20.adapter.sp.authn.SsoContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)
method, if it needs to by calling this setter method
and the PingFederate server will use the new value.
targetResourceUrl
- the new target resource URL.public AssertionType getSsoAssertion()
All protocol validation has been performed on the assertion and the commonly used values have
been placed in the subject attributes map getSubjectAttributes()
. In general, only
advanced usages will need this method because getSubjectAttributes() contains most of the
commonly needed information.
public List<AssertionType> getOtherValidAssertions()
All protocol validation has been performed on these assertions and the commonly used values have
been placed in the subject attributes map getSubjectAttributes()
. In general, only
advanced usages will need this method because getSubjectAttributes() contains most of the
commonly needed information.
public String getAuthenticationContext()
public Date getAuthenticationInstant()
Copyright 2019 Ping Identity Corp. All rights reserved.