org.sourceid.saml20.adapter.sp.authn
Class SsoContext

java.lang.Object
  extended by org.sourceid.saml20.adapter.sp.authn.SsoContext

public class SsoContext
extends java.lang.Object

SsoContext is just a wrapper class that contains contextual information about a single sign-on event.

Author:
Brian Campbell

Constructor Summary
SsoContext(org.sourceid.util.log.AttributeMap subjectAttributes, org.sourceid.saml20.xmlbinding.assertion.AssertionType ssoAssertion, java.util.List<org.sourceid.saml20.xmlbinding.assertion.AssertionType> otherValidAssertions, java.lang.String idpPartnerEntityId, java.lang.String targetResourceUrl)
          Create a new SsoContext.
SsoContext(org.sourceid.util.log.AttributeMap subjectAttributes, org.sourceid.saml20.xmlbinding.assertion.AssertionType ssoAssertion, java.util.List<org.sourceid.saml20.xmlbinding.assertion.AssertionType> otherValidAssertions, java.lang.String idpPartnerEntityId, java.lang.String targetResourceUrl, java.lang.String authnCtx, java.util.Date authnInstant)
          Create a new SsoContext.
 
Method Summary
 java.lang.String getAuthenticationContext()
          Gets the authentication context (class reference URI) or authentication method of the assertion.
 java.util.Date getAuthenticationInstant()
          Gets the authentication instant.
 java.lang.String getIdpPartnerEntityId()
          Gets the entity id of the IDP who authenticated the user.
 java.util.List<org.sourceid.saml20.xmlbinding.assertion.AssertionType> getOtherValidAssertions()
          If more than one assertion was included by the IdP, the additional valid assertion can be accessed by this method.
 org.sourceid.saml20.xmlbinding.assertion.AssertionType getSsoAssertion()
          The raw assertion that was relied upon for SSO.
 java.util.Map getSubjectAttributes()
          Deprecated. Please use getSubjectAttrs() instead.
 java.util.Map<java.lang.String,AttributeValue> getSubjectAttrs()
          Gets the attributes resulting from the PingFederate server's subject and attribute mapping process.
 java.lang.String getTargetResourceUrl()
          The URL that is the end target destination of the SSO.
 void setTargetResourceUrl(java.lang.String targetResourceUrl)
          Set the target resource URL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SsoContext

public SsoContext(org.sourceid.util.log.AttributeMap subjectAttributes,
                  org.sourceid.saml20.xmlbinding.assertion.AssertionType ssoAssertion,
                  java.util.List<org.sourceid.saml20.xmlbinding.assertion.AssertionType> otherValidAssertions,
                  java.lang.String idpPartnerEntityId,
                  java.lang.String targetResourceUrl)
Create a new SsoContext.


SsoContext

public SsoContext(org.sourceid.util.log.AttributeMap subjectAttributes,
                  org.sourceid.saml20.xmlbinding.assertion.AssertionType ssoAssertion,
                  java.util.List<org.sourceid.saml20.xmlbinding.assertion.AssertionType> otherValidAssertions,
                  java.lang.String idpPartnerEntityId,
                  java.lang.String targetResourceUrl,
                  java.lang.String authnCtx,
                  java.util.Date authnInstant)
Create a new SsoContext.

Method Detail

getSubjectAttributes

public java.util.Map getSubjectAttributes()
Deprecated. Please use getSubjectAttrs() instead.


getSubjectAttrs

public java.util.Map<java.lang.String,AttributeValue> getSubjectAttrs()
Gets the attributes resulting from the PingFederate server's subject and attribute mapping process.

Returns:
the map of attributes (name/value pairs where the values are AttributeValue objects). This map should fulfill the the incoming attribute contract of your adapter implementation.
See Also:
AttributeValue

getIdpPartnerEntityId

public java.lang.String getIdpPartnerEntityId()
Gets the entity id of the IDP who authenticated the user.

Returns:
the entity id.

getTargetResourceUrl

public java.lang.String getTargetResourceUrl()
The URL that is the end target destination of the SSO.

Returns:
the target resource URL.

setTargetResourceUrl

public void setTargetResourceUrl(java.lang.String targetResourceUrl)
Set the target resource URL.

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.

Parameters:
targetResourceUrl - the new target resource URL.

getSsoAssertion

public org.sourceid.saml20.xmlbinding.assertion.AssertionType getSsoAssertion()
The raw assertion that was relied upon for SSO.

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.

Returns:
an XmlBeans AssertionType object

getOtherValidAssertions

public java.util.List<org.sourceid.saml20.xmlbinding.assertion.AssertionType> getOtherValidAssertions()
If more than one assertion was included by the IdP, the additional valid assertion can be accessed by this method.

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.

Returns:
a list of XmlBeans AssertionType objects

getAuthenticationContext

public java.lang.String getAuthenticationContext()
Gets the authentication context (class reference URI) or authentication method of the assertion.

Returns:
a string representing the method or context of the principals authentication event.

getAuthenticationInstant

public java.util.Date getAuthenticationInstant()
Gets the authentication instant.

Returns:
the authentication instant from the assertion.


Copyright 2007 Ping Identity Corp. All rights reserved.