@Service(value="AuthenticationSessionStoreage") 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.
|
String |
changeSessionID(AuthenticationSession session)
Change the sessionID of a MOASession
|
String |
changeSessionID(AuthenticationSession session,
String newSessionID)
Change the sessionID of a MOASession
|
void |
clean(Date now,
long authDataTimeOutCreated,
long authDataTimeOutUpdated)
Clean all MOASessions which has a timeOut
|
AuthenticationSession |
createSession(at.gv.egovernment.moa.id.commons.api.IRequest target)
Create a new MOASession
|
void |
destroySession(String moaSessionID)
Delete a MOASession
|
List<at.gv.egovernment.moa.id.commons.db.dao.session.InterfederationSessionStore> |
getAllActiveIDPsFromMOASession(AuthenticationSession moaSession)
Get all active interfederation connections for a MOASession
|
List<at.gv.egovernment.moa.id.commons.db.dao.session.OASessionStore> |
getAllActiveOAFromMOASession(AuthenticationSession 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
|
String |
getMOASessionSSOID(String SSOSessionID)
Find the MOASessionId of an active Single Sign-On session
|
AuthenticationSession |
getSession(String sessionID)
Get a MOASession with sessionID
|
AuthenticationSession |
getSessionWithUserNameID(String nameID)
Search a active MOASession with a userID
|
boolean |
isAuthenticated(String moaSessionID)
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) |
boolean |
removeInterfederetedSession(String entityID,
String pedingRequestID)
Remove an active federation IDP from MOASession
|
at.gv.egovernment.moa.id.commons.db.dao.session.OASessionStore |
searchActiveOASSOSession(AuthenticationSession 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
|
AuthenticationSession |
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
|
void |
storeSession(AuthenticationSession session)
Store a MOASession
|
public boolean isAuthenticated(String moaSessionID)
IAuthenticationSessionStoreageisAuthenticated in interface IAuthenticationSessionStoreagemoaSessionID - MOASession identifierpublic AuthenticationSession createSession(at.gv.egovernment.moa.id.commons.api.IRequest target) throws at.gv.egovernment.moa.id.commons.db.ex.MOADatabaseException, BuildException
IAuthenticationSessionStoreagecreateSession 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 getSession(String sessionID) throws at.gv.egovernment.moa.id.commons.db.ex.MOADatabaseException
IAuthenticationSessionStoreagegetSession in interface IAuthenticationSessionStoreagesessionID - SessionID which corresponds to a MOASessionat.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 - SessionID which corresponds to a MOASessionat.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 - SessionID which corresponds to a MOASessionsessionExtensions - AuthenticationSessionExtensions objectat.gv.egovernment.moa.id.commons.db.ex.MOADatabaseException - MOASession storage operation FAILEDpublic void storeSession(AuthenticationSession session) throws at.gv.egovernment.moa.id.commons.db.ex.MOADatabaseException, BuildException
IAuthenticationSessionStoreagestoreSession in interface IAuthenticationSessionStoreagesession - MOASession which should be storedat.gv.egovernment.moa.id.commons.db.ex.MOADatabaseException - MOASession storage operation FAILEDBuildException - MOASession encryption FAILEDpublic void destroySession(String moaSessionID) throws at.gv.egovernment.moa.id.commons.db.ex.MOADatabaseException
IAuthenticationSessionStoreagedestroySession in interface IAuthenticationSessionStoreagemoaSessionID - SessionID which corresponds to a MOASessionat.gv.egovernment.moa.id.commons.db.ex.MOADatabaseException - MOASession delete operation FAILEDpublic String changeSessionID(AuthenticationSession session, String newSessionID) throws BuildException, at.gv.egovernment.moa.id.commons.db.ex.MOADatabaseException
IAuthenticationSessionStoreagechangeSessionID in interface IAuthenticationSessionStoreagesession - MOASession for which the sessionID should be changednewSessionID - new MOASessionID which should be usedBuildException - MOASession encryption/decryption FAILEDat.gv.egovernment.moa.id.commons.db.ex.MOADatabaseException - MOASession storage operation FAILEDpublic String changeSessionID(AuthenticationSession session) throws BuildException, at.gv.egovernment.moa.id.commons.db.ex.MOADatabaseException
IAuthenticationSessionStoreagechangeSessionID in interface IAuthenticationSessionStoreagesession - MOASession for which the sessionID should be changedBuildException - MOASession encryption/decryption FAILEDat.gv.egovernment.moa.id.commons.db.ex.MOADatabaseException - MOASession storage operation FAILEDpublic void setAuthenticated(String moaSessionID, boolean isAuthenticated)
IAuthenticationSessionStoreagesetAuthenticated in interface IAuthenticationSessionStoreagemoaSessionID - SessionID which corresponds to a MOASessionisAuthenticated - Is authenticated flag (true/false)public String getMOASessionSSOID(String SSOSessionID)
IAuthenticationSessionStoreagegetMOASessionSSOID in interface IAuthenticationSessionStoreageSSOSessionID - Single Sign-On sessionIDpublic 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(AuthenticationSession moaSession)
IAuthenticationSessionStoreagegetAllActiveOAFromMOASession in interface IAuthenticationSessionStoreagemoaSession - MOASession data objectpublic List<at.gv.egovernment.moa.id.commons.db.dao.session.InterfederationSessionStore> getAllActiveIDPsFromMOASession(AuthenticationSession moaSession)
IAuthenticationSessionStoreagegetAllActiveIDPsFromMOASession in interface IAuthenticationSessionStoreagemoaSession - MOASession data objectpublic AuthenticationSession 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(AuthenticationSession 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 AuthenticationSession 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]Copyright © 2016. All rights reserved.