public interface IAuthenticationSessionStoreage
| 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)
Deprecated.
|
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
|
boolean isAuthenticated(String moaSessionID)
moaSessionID - MOASession identifierAuthenticationSession createSession(at.gv.egovernment.moa.id.commons.api.IRequest target) throws at.gv.egovernment.moa.id.commons.db.ex.MOADatabaseException, BuildException
target - Pending Request which is associated with this MOASessionat.gv.egovernment.moa.id.commons.db.ex.MOADatabaseException - MOASession storage operation FAILEDBuildException - MOASession encryption FAILEDAuthenticationSession getSession(String sessionID) throws at.gv.egovernment.moa.id.commons.db.ex.MOADatabaseException
sessionID - SessionID which corresponds to a MOASessionat.gv.egovernment.moa.id.commons.db.ex.MOADatabaseException - MOASession load operation FAILEDAuthenticationSessionExtensions getAuthenticationSessionExtensions(String sessionID) throws at.gv.egovernment.moa.id.commons.db.ex.MOADatabaseException
sessionID - SessionID which corresponds to a MOASessionat.gv.egovernment.moa.id.commons.db.ex.MOADatabaseException - MOASession load operation FAILEDvoid setAuthenticationSessionExtensions(String sessionID, AuthenticationSessionExtensions sessionExtensions) throws at.gv.egovernment.moa.id.commons.db.ex.MOADatabaseException
sessionID - SessionID which corresponds to a MOASessionsessionExtensions - AuthenticationSessionExtensions objectat.gv.egovernment.moa.id.commons.db.ex.MOADatabaseException - MOASession storage operation FAILEDvoid storeSession(AuthenticationSession session) throws at.gv.egovernment.moa.id.commons.db.ex.MOADatabaseException, BuildException
session - MOASession which should be storedat.gv.egovernment.moa.id.commons.db.ex.MOADatabaseException - MOASession storage operation FAILEDBuildException - MOASession encryption FAILEDvoid destroySession(String moaSessionID) throws at.gv.egovernment.moa.id.commons.db.ex.MOADatabaseException
moaSessionID - SessionID which corresponds to a MOASessionat.gv.egovernment.moa.id.commons.db.ex.MOADatabaseException - MOASession delete operation FAILEDString changeSessionID(AuthenticationSession session, String newSessionID) throws BuildException, at.gv.egovernment.moa.id.commons.db.ex.MOADatabaseException
session - MOASession for which the sessionID should be changednewSessionID - new MOASessionID which should be usedat.gv.egovernment.moa.id.commons.db.ex.MOADatabaseException - MOASession storage operation FAILEDBuildException - MOASession encryption/decryption FAILEDString changeSessionID(AuthenticationSession session) throws BuildException, at.gv.egovernment.moa.id.commons.db.ex.MOADatabaseException
session - MOASession for which the sessionID should be changedat.gv.egovernment.moa.id.commons.db.ex.MOADatabaseException - MOASession storage operation FAILEDBuildException - MOASession encryption/decryption FAILEDvoid setAuthenticated(String moaSessionID, boolean isAuthenticated)
moaSessionID - SessionID which corresponds to a MOASessionisAuthenticated - Is authenticated flag (true/false)String getMOASessionSSOID(String SSOSessionID)
SSOSessionID - Single Sign-On sessionIDboolean isSSOSession(String sessionID) throws at.gv.egovernment.moa.id.commons.db.ex.MOADatabaseException
sessionID - SessionID which corresponds to a MOASessionat.gv.egovernment.moa.id.commons.db.ex.MOADatabaseException - MOASession load operation FAILEDat.gv.egovernment.moa.id.commons.db.dao.session.AuthenticatedSessionStore isValidSessionWithSSOID(String SSOId)
SSOId - void addSSOInformation(String moaSessionID, String SSOSessionID, SLOInformationInterface SLOInfo, at.gv.egovernment.moa.id.commons.api.IRequest protocolRequest) throws AuthenticationException
moaSessionID - 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 FAILEDList<at.gv.egovernment.moa.id.commons.db.dao.session.OASessionStore> getAllActiveOAFromMOASession(AuthenticationSession moaSession)
moaSession - MOASession data objectList<at.gv.egovernment.moa.id.commons.db.dao.session.InterfederationSessionStore> getAllActiveIDPsFromMOASession(AuthenticationSession moaSession)
moaSession - MOASession data objectAuthenticationSession searchMOASessionWithNameIDandOAID(String oaID, String userNameID)
oaID - Service-Provider identifier, which has received the authentication informationuserNameID - UserId (bPK), which was send to this Service-Providerat.gv.egovernment.moa.id.commons.db.dao.session.OASessionStore searchActiveOASSOSession(AuthenticationSession moaSession, String oaID, String protocolType)
moaSession - MOASession data objectoaID - Service-Provider identifier, which has received the authentication informationprotocolType - Authentication protocol, which was used for SSO from this Service-ProviderAuthenticationSession getSessionWithUserNameID(String nameID)
nameID - UserID (bPK)at.gv.egovernment.moa.id.commons.db.dao.session.InterfederationSessionStore searchInterfederatedIDPFORSSOWithMOASession(String sessionID)
sessionID - SessionID which corresponds to a MOASessionat.gv.egovernment.moa.id.commons.db.dao.session.InterfederationSessionStore searchInterfederatedIDPFORSSOWithMOASessionIDPID(String sessionID, String idpID)
sessionID - SessionID which corresponds to a MOASessionidpID - Unique identifier of the federated IDPvoid 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
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.MOADatabaseExceptionAssertionAttributeExtractorExeptionBuildExceptionat.gv.egovernment.moa.id.commons.db.dao.session.InterfederationSessionStore searchInterfederatedIDPFORAttributeQueryWithSessionID(String moaSessionID)
moaSessionID - ID of a active MOASession@Deprecated boolean removeInterfederetedSession(String entityID, String pedingRequestID)
entityID - Unique identifier of the federated IDPpedingRequestID - void clean(Date now, long authDataTimeOutCreated, long authDataTimeOutUpdated)
now - Current TimeauthDataTimeOutCreated - timeOut after MOASession is created [ms]authDataTimeOutUpdated - timeOut after MOASession is updated last time [ms]Copyright © 2016. All rights reserved.