Package com.sun.identity.saml2.profile
Class IDPSession
- java.lang.Object
-
- com.sun.identity.saml2.profile.IDPSession
-
public class IDPSession extends Object
This class represents a session in the identity provider side. It keeps track of information that is needed for single sign on as well as single log out.
-
-
Constructor Summary
Constructors Constructor Description IDPSession(IDPSessionCopy idpSessionCopy)IDPSession(Object session)Constructor for aIDPSession.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddSessionPartner(SAML2SessionPartner sessionPartner)Adds a session partner.StringgetAuthnContext()Returns authentication context.SAML2SessionPartnergetCurrentSessionPartner()Returns the first session partner of the list of session partners.booleangetLogoutAll()Returns the logoutAll property.StringgetMetaAlias()Returns the IDP Meta Alias.List<NameIDandSPpair>getNameIDandSPpairs()Returns the list ofNameIDandSPEntityIDpair of the session.StringgetOriginatingLogoutRequestBinding()Returns the original logout request binding.StringgetOriginatingLogoutRequestID()Returns the original log out request id of the session.StringgetOriginatingLogoutSPEntityID()Returns the original log outSPEntityIDof the session.StringgetPendingLogoutRequestID()Returns the pending log out request id of the session.ObjectgetSession()Returns the session object.ListgetSessionPartners()Returns list of session partners.voidremoveSessionPartner(String sessionPartner)Removes a session partner.voidsetAuthnContext(String authnContext)Sets authentication context.voidsetLogoutAll(boolean enable)Sets the logoutAll property.voidsetMetaAlias(String metaAlias)Sets the IDP Meta Alias.voidsetOriginatingLogoutRequestBinding(String originatingLogoutRequestBinding)Sets the original logout request binding.voidsetOriginatingLogoutRequestID(String id)Sets the original log out request id of the session.voidsetOriginatingLogoutSPEntityID(String id)Sets the original log outSPEntityIDof the session.voidsetPendingLogoutRequestID(String id)Sets the pending log out request id of the session.voidsetSession(Object session)Sets the session object.
-
-
-
Constructor Detail
-
IDPSession
public IDPSession(Object session)
Constructor for aIDPSession.- Parameters:
session- the session object corresponding to theIDPSession
-
IDPSession
public IDPSession(IDPSessionCopy idpSessionCopy)
-
-
Method Detail
-
getSession
public Object getSession()
Returns the session object.- Returns:
- the session object.
-
setSession
public void setSession(Object session)
Sets the session object.- Parameters:
session- The session object.
-
getNameIDandSPpairs
public List<NameIDandSPpair> getNameIDandSPpairs()
Returns the list ofNameIDandSPEntityIDpair of the session.- Returns:
- the list of
NameIDandSPEntityIDpair of the session
-
setPendingLogoutRequestID
public void setPendingLogoutRequestID(String id)
Sets the pending log out request id of the session.- Parameters:
id- the request id
-
getPendingLogoutRequestID
public String getPendingLogoutRequestID()
Returns the pending log out request id of the session.- Returns:
- id the pending log out request id
-
setOriginatingLogoutRequestBinding
public void setOriginatingLogoutRequestBinding(String originatingLogoutRequestBinding)
Sets the original logout request binding.- Parameters:
originatingLogoutRequestBinding- the original logout request binding.
-
getOriginatingLogoutRequestBinding
public String getOriginatingLogoutRequestBinding()
Returns the original logout request binding.- Returns:
- The original logout request binding.
-
setOriginatingLogoutRequestID
public void setOriginatingLogoutRequestID(String id)
Sets the original log out request id of the session.- Parameters:
id- the request id
-
getOriginatingLogoutRequestID
public String getOriginatingLogoutRequestID()
Returns the original log out request id of the session.- Returns:
- the original log out request id
-
setOriginatingLogoutSPEntityID
public void setOriginatingLogoutSPEntityID(String id)
Sets the original log outSPEntityIDof the session.- Parameters:
id- theSPEntityID
-
getOriginatingLogoutSPEntityID
public String getOriginatingLogoutSPEntityID()
Returns the original log outSPEntityIDof the session.- Returns:
- the original log out
SPEntityID
-
setLogoutAll
public void setLogoutAll(boolean enable)
Sets the logoutAll property.- Parameters:
enable- true or false
-
getLogoutAll
public boolean getLogoutAll()
Returns the logoutAll property.- Returns:
- the logoutAll property.
-
getSessionPartners
public List getSessionPartners()
Returns list of session partners.- Returns:
- list of session partners
-
addSessionPartner
public void addSessionPartner(SAML2SessionPartner sessionPartner)
Adds a session partner.- Parameters:
sessionPartner- session partner to be added
-
getCurrentSessionPartner
public SAML2SessionPartner getCurrentSessionPartner()
Returns the first session partner of the list of session partners.- Returns:
- the first session partner of the list
-
removeSessionPartner
public void removeSessionPartner(String sessionPartner)
Removes a session partner.- Parameters:
sessionPartner- session partner to be removed
-
getAuthnContext
public String getAuthnContext()
Returns authentication context.- Returns:
- authentication context
- See Also:
setAuthnContext(String)
-
setAuthnContext
public void setAuthnContext(String authnContext)
Sets authentication context.- Parameters:
authnContext- authentication context to be set- See Also:
getAuthnContext()
-
setMetaAlias
public void setMetaAlias(String metaAlias)
Sets the IDP Meta Alias.- Parameters:
metaAlias- Meta Alias
-
getMetaAlias
public String getMetaAlias()
Returns the IDP Meta Alias.- Returns:
- the IDP Meta Alias
-
-