IAuthenticationSessionStoreage
@Repository("AuthenticationSessionStoreage") @Transactional("sessionTransactionManager") public class DBAuthenticationSessionStoreage extends Object implements IAuthenticationSessionStoreage
Constructor | Description |
---|---|
DBAuthenticationSessionStoreage() |
Modifier and Type | Method | Description |
---|---|---|
void |
addFederatedSessionInformation(at.gv.egiz.eaaf.core.api.IRequest req,
String idpEntityID,
at.gv.egiz.eaaf.modules.pvp2.sp.impl.utils.AssertionAttributeExtractor extractor) |
Add information of the federated IDP to MOASession
|
void |
addSSOInformation(String internalSSOSessionID,
String externalSSOSessionID,
at.gv.egiz.eaaf.core.api.idp.slo.SLOInformationInterface SLOInfo,
at.gv.egiz.eaaf.core.api.IRequest protocolRequest) |
Add Single Sign-On processing information to a MOASession.
|
at.gv.egovernment.moa.id.commons.db.dao.session.OldSSOSessionIDStore |
checkSSOTokenAlreadyUsed(String ssoId) |
|
void |
clean(Date now,
long authDataTimeOutCreated,
long authDataTimeOutUpdated) |
Clean all MOASessions which has a timeOut
|
AuthenticationSession |
createInternalSSOSession(at.gv.egiz.eaaf.core.api.IRequest target) |
Create a new MOA SSO-Session object in database
The SSO session object get populated with eID information from pending request
|
void |
deleteIdpInformation(at.gv.egovernment.moa.id.commons.db.dao.session.InterfederationSessionStore nextIDPInformation) |
|
void |
destroyInternalSSOSession(String internalSsoSessionID) |
Delete a MOASession
|
List<at.gv.egovernment.moa.id.commons.db.dao.session.InterfederationSessionStore> |
getAllActiveIDPsFromMOASession(String ssoSessionId) |
Get all active interfederation connections for a MOASession
|
List<at.gv.egovernment.moa.id.commons.db.dao.session.OASessionStore> |
getAllActiveOAFromMOASession(String ssoSessionId) |
Get all Single Sign-On authenticated Service-Provider of a MOASession
|
AuthenticationSessionExtensions |
getAuthenticationSessionExtensions(String sessionID) |
Get the session-data extension-object for a MOASession
|
AuthenticationSession |
getInternalSSOSession(String sessionID) |
Get a MOASession with sessionID
|
String |
getInternalSSOSessionWithSSOID(String externelSSOId) |
Find the internal SSO session identifier of an active Single Sign-On session
|
at.gv.egovernment.moa.id.commons.api.data.IAuthenticationSession |
getSessionWithUserNameID(String nameID) |
Search a active MOASession with a userID
|
boolean |
isSSOSession(String sessionID) |
Check if a MOASession is an active Single Sign-On session
|
at.gv.egovernment.moa.id.commons.db.dao.session.AuthenticatedSessionStore |
isValidSessionWithSSOID(String SSOId) |
|
void |
markOAWithAttributeQueryUsedFlag(at.gv.egovernment.moa.id.commons.api.data.IAuthenticationSession session,
String oaurl,
String requestedModule) |
|
void |
persistIdpInformation(at.gv.egovernment.moa.id.commons.db.dao.session.InterfederationSessionStore nextIDPInformation) |
|
boolean |
removeInterfederetedSession(String entityID,
String pedingRequestID) |
Remove an active federation IDP from MOASession
|
at.gv.egovernment.moa.id.commons.db.dao.session.OASessionStore |
searchActiveOASSOSession(at.gv.egovernment.moa.id.commons.api.data.IAuthenticationSession moaSession,
String oaID,
String protocolType) |
Search a active Single Sign-On session for a specific Service-Provider
|
at.gv.egovernment.moa.id.commons.db.dao.session.InterfederationSessionStore |
searchInterfederatedIDPFORAttributeQueryWithSessionID(String moaSessionID) |
Search an active federation IDP which could be used for federated Single Sign-On by using an AttributeQuery
|
at.gv.egovernment.moa.id.commons.db.dao.session.InterfederationSessionStore |
searchInterfederatedIDPFORSSOWithMOASession(String sessionID) |
Search an active federation IDP which could be used for federated Single Sign-On
|
at.gv.egovernment.moa.id.commons.db.dao.session.InterfederationSessionStore |
searchInterfederatedIDPFORSSOWithMOASessionIDPID(String sessionID,
String idpID) |
Get information to an active federated IDP of MOASession
|
String |
searchSSOSessionWithNameIDandOAID(String oaID,
String userNameID) |
Search a SSO session by using already transfered authentication information
|
void |
setAuthenticated(String moaSessionID,
boolean isAuthenticated) |
Set the isAuthenticated flag to MOASession
|
void |
setAuthenticationSessionExtensions(String sessionID,
AuthenticationSessionExtensions sessionExtensions) |
Store a session-data extension-object to MOASession
|
public AuthenticationSession createInternalSSOSession(at.gv.egiz.eaaf.core.api.IRequest target) throws at.gv.egovernment.moa.id.commons.db.ex.MOADatabaseException, BuildException
IAuthenticationSessionStoreage
createInternalSSOSession
in interface IAuthenticationSessionStoreage
target
- Pending Request which is associated with this MOASessionat.gv.egovernment.moa.id.commons.db.ex.MOADatabaseException
- MOASession storage operation FAILEDBuildException
- MOASession encryption FAILEDpublic AuthenticationSession getInternalSSOSession(String sessionID) throws at.gv.egovernment.moa.id.commons.db.ex.MOADatabaseException
IAuthenticationSessionStoreage
getInternalSSOSession
in interface IAuthenticationSessionStoreage
sessionID
- Internal MOA SSO-Session identifierat.gv.egovernment.moa.id.commons.db.ex.MOADatabaseException
- MOASession load operation FAILEDpublic AuthenticationSessionExtensions getAuthenticationSessionExtensions(String sessionID) throws at.gv.egovernment.moa.id.commons.db.ex.MOADatabaseException
IAuthenticationSessionStoreage
getAuthenticationSessionExtensions
in interface IAuthenticationSessionStoreage
sessionID
- Internal MOA SSO-Session identifierat.gv.egovernment.moa.id.commons.db.ex.MOADatabaseException
- MOASession load operation FAILEDpublic void setAuthenticationSessionExtensions(String sessionID, AuthenticationSessionExtensions sessionExtensions) throws at.gv.egovernment.moa.id.commons.db.ex.MOADatabaseException
IAuthenticationSessionStoreage
setAuthenticationSessionExtensions
in interface IAuthenticationSessionStoreage
sessionID
- Internal MOA SSO-Session identifiersessionExtensions
- AuthenticationSessionExtensions objectat.gv.egovernment.moa.id.commons.db.ex.MOADatabaseException
- MOASession storage operation FAILEDpublic void destroyInternalSSOSession(String internalSsoSessionID) throws at.gv.egovernment.moa.id.commons.db.ex.MOADatabaseException
IAuthenticationSessionStoreage
destroyInternalSSOSession
in interface IAuthenticationSessionStoreage
internalSsoSessionID
- Internal MOA SSO-Session identifierat.gv.egovernment.moa.id.commons.db.ex.MOADatabaseException
- MOASession delete operation FAILEDpublic void setAuthenticated(String moaSessionID, boolean isAuthenticated)
IAuthenticationSessionStoreage
setAuthenticated
in interface IAuthenticationSessionStoreage
moaSessionID
- Internal MOA SSO-Session identifierisAuthenticated
- Is authenticated flag (true/false)public String getInternalSSOSessionWithSSOID(String externelSSOId) throws at.gv.egovernment.moa.id.commons.db.ex.MOADatabaseException
IAuthenticationSessionStoreage
getInternalSSOSessionWithSSOID
in interface IAuthenticationSessionStoreage
externelSSOId
- external Single Sign-On sessionIDat.gv.egovernment.moa.id.commons.db.ex.MOADatabaseException
public boolean isSSOSession(String sessionID) throws at.gv.egovernment.moa.id.commons.db.ex.MOADatabaseException
IAuthenticationSessionStoreage
isSSOSession
in interface IAuthenticationSessionStoreage
sessionID
- SessionID which corresponds to a MOASessionat.gv.egovernment.moa.id.commons.db.ex.MOADatabaseException
- MOASession load operation FAILEDpublic at.gv.egovernment.moa.id.commons.db.dao.session.AuthenticatedSessionStore isValidSessionWithSSOID(String SSOId)
isValidSessionWithSSOID
in interface IAuthenticationSessionStoreage
public void addSSOInformation(String internalSSOSessionID, String externalSSOSessionID, at.gv.egiz.eaaf.core.api.idp.slo.SLOInformationInterface SLOInfo, at.gv.egiz.eaaf.core.api.IRequest protocolRequest) throws AuthenticationException
IAuthenticationSessionStoreage
addSSOInformation
in interface IAuthenticationSessionStoreage
internalSSOSessionID
- SessionID which corresponds to a MOASessionexternalSSOSessionID
- Single Sign-On sessionIDSLOInfo
- Data object with Single LogOut informationprotocolRequest
- Protocol-request object of the authentication requestAuthenticationException
- Single Sign-On information store operation FAILEDpublic List<at.gv.egovernment.moa.id.commons.db.dao.session.OASessionStore> getAllActiveOAFromMOASession(String ssoSessionId)
IAuthenticationSessionStoreage
getAllActiveOAFromMOASession
in interface IAuthenticationSessionStoreage
ssoSessionId
- SSO session idpublic List<at.gv.egovernment.moa.id.commons.db.dao.session.InterfederationSessionStore> getAllActiveIDPsFromMOASession(String ssoSessionId)
IAuthenticationSessionStoreage
getAllActiveIDPsFromMOASession
in interface IAuthenticationSessionStoreage
ssoSessionId
- SSO session idpublic String searchSSOSessionWithNameIDandOAID(String oaID, String userNameID)
IAuthenticationSessionStoreage
searchSSOSessionWithNameIDandOAID
in interface IAuthenticationSessionStoreage
oaID
- Service-Provider identifier, which has received the authentication informationuserNameID
- UserId (bPK), which was send to this Service-Providerpublic at.gv.egovernment.moa.id.commons.db.dao.session.OASessionStore searchActiveOASSOSession(at.gv.egovernment.moa.id.commons.api.data.IAuthenticationSession moaSession, String oaID, String protocolType)
IAuthenticationSessionStoreage
searchActiveOASSOSession
in interface IAuthenticationSessionStoreage
moaSession
- MOASession data objectoaID
- Service-Provider identifier, which has received the authentication informationprotocolType
- Authentication protocol, which was used for SSO from this Service-Providerpublic void markOAWithAttributeQueryUsedFlag(at.gv.egovernment.moa.id.commons.api.data.IAuthenticationSession session, String oaurl, String requestedModule)
markOAWithAttributeQueryUsedFlag
in interface IAuthenticationSessionStoreage
public at.gv.egovernment.moa.id.commons.api.data.IAuthenticationSession getSessionWithUserNameID(String nameID)
IAuthenticationSessionStoreage
getSessionWithUserNameID
in interface IAuthenticationSessionStoreage
nameID
- UserID (bPK)public at.gv.egovernment.moa.id.commons.db.dao.session.InterfederationSessionStore searchInterfederatedIDPFORSSOWithMOASession(String sessionID)
IAuthenticationSessionStoreage
searchInterfederatedIDPFORSSOWithMOASession
in interface IAuthenticationSessionStoreage
sessionID
- SessionID which corresponds to a MOASessionpublic at.gv.egovernment.moa.id.commons.db.dao.session.InterfederationSessionStore searchInterfederatedIDPFORSSOWithMOASessionIDPID(String sessionID, String idpID)
IAuthenticationSessionStoreage
searchInterfederatedIDPFORSSOWithMOASessionIDPID
in interface IAuthenticationSessionStoreage
sessionID
- SessionID which corresponds to a MOASessionidpID
- Unique identifier of the federated IDPpublic void addFederatedSessionInformation(at.gv.egiz.eaaf.core.api.IRequest req, String idpEntityID, at.gv.egiz.eaaf.modules.pvp2.sp.impl.utils.AssertionAttributeExtractor extractor) throws at.gv.egovernment.moa.id.commons.db.ex.MOADatabaseException, at.gv.egiz.eaaf.modules.pvp2.sp.exception.AssertionAttributeExtractorExeption, BuildException, at.gv.egiz.eaaf.core.exceptions.EAAFConfigurationException
IAuthenticationSessionStoreage
addFederatedSessionInformation
in interface IAuthenticationSessionStoreage
req
- Pending request of the service-provider request, never nullidpEntityID
- The SAML2 EntityID of the federated IDP, never nullextractor
- AssertionAttributeExtractor
which holds the SAML2 response of the federated IDP, never nullat.gv.egovernment.moa.id.commons.db.ex.MOADatabaseException
at.gv.egiz.eaaf.modules.pvp2.sp.exception.AssertionAttributeExtractorExeption
BuildException
at.gv.egiz.eaaf.core.exceptions.EAAFConfigurationException
public at.gv.egovernment.moa.id.commons.db.dao.session.InterfederationSessionStore searchInterfederatedIDPFORAttributeQueryWithSessionID(String moaSessionID)
IAuthenticationSessionStoreage
searchInterfederatedIDPFORAttributeQueryWithSessionID
in interface IAuthenticationSessionStoreage
moaSessionID
- ID of a active MOASessionpublic boolean removeInterfederetedSession(String entityID, String pedingRequestID)
IAuthenticationSessionStoreage
removeInterfederetedSession
in interface IAuthenticationSessionStoreage
entityID
- Unique identifier of the federated IDPpublic void clean(Date now, long authDataTimeOutCreated, long authDataTimeOutUpdated)
IAuthenticationSessionStoreage
clean
in interface IAuthenticationSessionStoreage
now
- Current TimeauthDataTimeOutCreated
- timeOut after MOASession is created [ms]authDataTimeOutUpdated
- timeOut after MOASession is updated last time [ms]public void deleteIdpInformation(at.gv.egovernment.moa.id.commons.db.dao.session.InterfederationSessionStore nextIDPInformation)
deleteIdpInformation
in interface IAuthenticationSessionStoreage
public void persistIdpInformation(at.gv.egovernment.moa.id.commons.db.dao.session.InterfederationSessionStore nextIDPInformation)
persistIdpInformation
in interface IAuthenticationSessionStoreage
public at.gv.egovernment.moa.id.commons.db.dao.session.OldSSOSessionIDStore checkSSOTokenAlreadyUsed(String ssoId)
checkSSOTokenAlreadyUsed
in interface IAuthenticationSessionStoreage
Copyright © 2019. All rights reserved.