Package net.shibboleth.idp.saml.session
Class SAML2SPSession
java.lang.Object
net.shibboleth.idp.session.BasicSPSession
net.shibboleth.idp.saml.session.SAML2SPSession
- All Implemented Interfaces:
SPSession,Component,IdentifiedComponent
Extends a
BasicSPSession with SAML 2.0 information required for
reverse lookup in the case of a logout.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanGet the ACS location used for the response that produced this session.Get theNameIDasserted to the SP.Get a protocol constant for the session suitable for metadata lookup.Get theSessionIndexvalue asserted to the SP.Get a unique key identifying this subject's session with the service.inthashCode()booleanGets whether the session allows for logout propagation.toString()Methods inherited from class net.shibboleth.idp.session.BasicSPSession
getCreationInstant, getExpirationInstant, getId
-
Field Details
-
nameID
The NameID asserted to the SP. -
sessionIndex
The SessionIndex asserted to the SP. -
acsLocation
The ACS location used for the associated response. -
supportsLogoutPropagation
private final boolean supportsLogoutPropagationWhether logout propagation is possible.
-
-
Constructor Details
-
SAML2SPSession
public SAML2SPSession(@Nonnull @NotEmpty String id, @Nonnull Instant creation, @Nonnull Instant expiration, @Nonnull NameID assertedNameID, @Nonnull @NotEmpty String assertedIndex, @Nullable @NotEmpty String acsLoc, boolean supportsLogoutProp) Constructor.- Parameters:
id- the identifier of the service associated with this sessioncreation- creation time of sessionexpiration- expiration time of sessionassertedNameID- the NameID asserted to the SPassertedIndex- the SessionIndex asserted to the SPacsLoc- the response endpoint usedsupportsLogoutProp- whether the session supports logout propagation
-
-
Method Details
-
getNameID
Get theNameIDasserted to the SP.- Returns:
- the asserted
NameID
-
getSessionIndex
Get theSessionIndexvalue asserted to the SP.- Returns:
- the SessionIndex value
-
getSPSessionKey
Get a unique key identifying this subject's session with the service.This will vary based on the type of session, typically based on the protocol used, but it provides a secondary lookup key that may be required in support of other use cases involving that protocol. Not all protocols may require such a key, so null may be returned.
- Specified by:
getSPSessionKeyin interfaceSPSession- Overrides:
getSPSessionKeyin classBasicSPSession- Returns:
- a unique key identifying this subject's session with the service, or null
-
getProtocol
Get a protocol constant for the session suitable for metadata lookup.- Specified by:
getProtocolin interfaceSPSession- Overrides:
getProtocolin classBasicSPSession- Returns:
- a protocol constant
-
getACSLocation
Get the ACS location used for the response that produced this session.- Returns:
- ACS location
-
supportsLogoutPropagation
public boolean supportsLogoutPropagation()Gets whether the session allows for logout propagation.- Specified by:
supportsLogoutPropagationin interfaceSPSession- Overrides:
supportsLogoutPropagationin classBasicSPSession- Returns:
- whether the session allows for logout propagation
-
hashCode
public int hashCode()- Overrides:
hashCodein classBasicSPSession
-
equals
- Overrides:
equalsin classBasicSPSession
-
toString
- Overrides:
toStringin classBasicSPSession
-