@Repository(value="AuthenticationSessionStoreage") @Transactional(value="sessionTransactionManager") public class DBAuthenticationSessionStoreage extends Object implements IAuthenticationSessionStoreage
| Constructor and Description |
|---|
DBAuthenticationSessionStoreage() |
| Modifier and Type | Method and Description |
|---|---|
void |
addFederatedSessionInformation(at.gv.egovernment.moa.id.commons.api.IRequest req,
String idpEntityID,
AssertionAttributeExtractor extractor)
Add information of the federated IDP to MOASession
|
void |
addSSOInformation(String moaSessionID,
String SSOSessionID,
SLOInformationInterface SLOInfo,
at.gv.egovernment.moa.id.commons.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.egovernment.moa.id.commons.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(at.gv.egovernment.moa.id.commons.api.data.IAuthenticationSession moaSession)
Get all active interfederation connections for a MOASession
|
List<at.gv.egovernment.moa.id.commons.db.dao.session.OASessionStore> |
getAllActiveOAFromMOASession(at.gv.egovernment.moa.id.commons.api.data.IAuthenticationSession moaSession)
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 |
getInternalMOASessionWithSSOID(String SSOSessionID)
Find the MOASessionId of an active Single Sign-On session
|
AuthenticationSession |
getInternalSSOSession(String sessionID)
Get a MOASession with sessionID
|
at.gv.egovernment.moa.id.commons.api.data.IAuthenticationSession |
getSessionWithUserNameID(String nameID)
Search a active MOASession with a userID
|
boolean |
isAuthenticated(String internalSsoSessionID)
Check if the stored MOASession is already authenticated
|
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
|
at.gv.egovernment.moa.id.commons.api.data.IAuthenticationSession |
searchMOASessionWithNameIDandOAID(String oaID,
String userNameID)
Search a MOASession 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 boolean isAuthenticated(String internalSsoSessionID)
IAuthenticationSessionStoreageisAuthenticated in interface IAuthenticationSessionStoreageinternalSsoSessionID - Internal MOA SSO-Session identifierpublic AuthenticationSession createInternalSSOSession(at.gv.egovernment.moa.id.commons.api.IRequest target) throws at.gv.egovernment.moa.id.commons.db.ex.MOADatabaseException, BuildException
IAuthenticationSessionStoreagecreateInternalSSOSession in interface IAuthenticationSessionStoreagetarget - 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
IAuthenticationSessionStoreagegetInternalSSOSession in interface IAuthenticationSessionStoreagesessionID - 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
IAuthenticationSessionStoreagegetAuthenticationSessionExtensions in interface IAuthenticationSessionStoreagesessionID - 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
IAuthenticationSessionStoreagesetAuthenticationSessionExtensions in interface IAuthenticationSessionStoreagesessionID - 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
IAuthenticationSessionStoreagedestroyInternalSSOSession in interface IAuthenticationSessionStoreageinternalSsoSessionID - Internal MOA SSO-Session identifierat.gv.egovernment.moa.id.commons.db.ex.MOADatabaseException - MOASession delete operation FAILEDpublic void setAuthenticated(String moaSessionID, boolean isAuthenticated)
IAuthenticationSessionStoreagesetAuthenticated in interface IAuthenticationSessionStoreagemoaSessionID - Internal MOA SSO-Session identifierisAuthenticated - Is authenticated flag (true/false)public AuthenticationSession getInternalMOASessionWithSSOID(String SSOSessionID) throws at.gv.egovernment.moa.id.commons.db.ex.MOADatabaseException
IAuthenticationSessionStoreagegetInternalMOASessionWithSSOID in interface IAuthenticationSessionStoreageSSOSessionID - Single Sign-On sessionIDat.gv.egovernment.moa.id.commons.db.ex.MOADatabaseExceptionpublic boolean isSSOSession(String sessionID) throws at.gv.egovernment.moa.id.commons.db.ex.MOADatabaseException
IAuthenticationSessionStoreageisSSOSession in interface IAuthenticationSessionStoreagesessionID - 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 IAuthenticationSessionStoreagepublic void addSSOInformation(String moaSessionID, String SSOSessionID, SLOInformationInterface SLOInfo, at.gv.egovernment.moa.id.commons.api.IRequest protocolRequest) throws AuthenticationException
IAuthenticationSessionStoreageaddSSOInformation in interface IAuthenticationSessionStoreagemoaSessionID - SessionID which corresponds to a MOASessionSSOSessionID - 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(at.gv.egovernment.moa.id.commons.api.data.IAuthenticationSession moaSession)
IAuthenticationSessionStoreagegetAllActiveOAFromMOASession in interface IAuthenticationSessionStoreagemoaSession - MOASession data objectpublic List<at.gv.egovernment.moa.id.commons.db.dao.session.InterfederationSessionStore> getAllActiveIDPsFromMOASession(at.gv.egovernment.moa.id.commons.api.data.IAuthenticationSession moaSession)
IAuthenticationSessionStoreagegetAllActiveIDPsFromMOASession in interface IAuthenticationSessionStoreagemoaSession - MOASession data objectpublic at.gv.egovernment.moa.id.commons.api.data.IAuthenticationSession searchMOASessionWithNameIDandOAID(String oaID, String userNameID)
IAuthenticationSessionStoreagesearchMOASessionWithNameIDandOAID in interface IAuthenticationSessionStoreageoaID - 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)
IAuthenticationSessionStoreagesearchActiveOASSOSession in interface IAuthenticationSessionStoreagemoaSession - 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 IAuthenticationSessionStoreagepublic at.gv.egovernment.moa.id.commons.api.data.IAuthenticationSession getSessionWithUserNameID(String nameID)
IAuthenticationSessionStoreagegetSessionWithUserNameID in interface IAuthenticationSessionStoreagenameID - UserID (bPK)public at.gv.egovernment.moa.id.commons.db.dao.session.InterfederationSessionStore searchInterfederatedIDPFORSSOWithMOASession(String sessionID)
IAuthenticationSessionStoreagesearchInterfederatedIDPFORSSOWithMOASession in interface IAuthenticationSessionStoreagesessionID - SessionID which corresponds to a MOASessionpublic at.gv.egovernment.moa.id.commons.db.dao.session.InterfederationSessionStore searchInterfederatedIDPFORSSOWithMOASessionIDPID(String sessionID, String idpID)
IAuthenticationSessionStoreagesearchInterfederatedIDPFORSSOWithMOASessionIDPID in interface IAuthenticationSessionStoreagesessionID - SessionID which corresponds to a MOASessionidpID - Unique identifier of the federated IDPpublic void addFederatedSessionInformation(at.gv.egovernment.moa.id.commons.api.IRequest req,
String idpEntityID,
AssertionAttributeExtractor extractor)
throws at.gv.egovernment.moa.id.commons.db.ex.MOADatabaseException,
AssertionAttributeExtractorExeption,
BuildException
IAuthenticationSessionStoreageaddFederatedSessionInformation in interface IAuthenticationSessionStoreagereq - 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.MOADatabaseExceptionAssertionAttributeExtractorExeptionBuildExceptionpublic at.gv.egovernment.moa.id.commons.db.dao.session.InterfederationSessionStore searchInterfederatedIDPFORAttributeQueryWithSessionID(String moaSessionID)
IAuthenticationSessionStoreagesearchInterfederatedIDPFORAttributeQueryWithSessionID in interface IAuthenticationSessionStoreagemoaSessionID - ID of a active MOASessionpublic boolean removeInterfederetedSession(String entityID, String pedingRequestID)
IAuthenticationSessionStoreageremoveInterfederetedSession in interface IAuthenticationSessionStoreageentityID - Unique identifier of the federated IDPpublic void clean(Date now, long authDataTimeOutCreated, long authDataTimeOutUpdated)
IAuthenticationSessionStoreageclean in interface IAuthenticationSessionStoreagenow - 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 IAuthenticationSessionStoreagepublic void persistIdpInformation(at.gv.egovernment.moa.id.commons.db.dao.session.InterfederationSessionStore nextIDPInformation)
persistIdpInformation in interface IAuthenticationSessionStoreagepublic at.gv.egovernment.moa.id.commons.db.dao.session.OldSSOSessionIDStore checkSSOTokenAlreadyUsed(String ssoId)
checkSSOTokenAlreadyUsed in interface IAuthenticationSessionStoreageCopyright © 2017. All rights reserved.