org.aselect.server.request.handler.saml11.common
Class AssertionSessionManager

java.lang.Object
  extended by org.aselect.system.storagemanager.StorageManager
      extended by org.aselect.server.request.handler.saml11.common.AssertionSessionManager

public class AssertionSessionManager
extends StorageManager

Session manager for temporary Assertion storage.

Description:
Session manager singleton which is used for temporary Assertion storage for Browser/Artifact.The session manager is used by the SAML11ArtifactRequestHandler and the BrowserArtifact WebSSO profile.

Concurrency issues:
-

Author:
Alfa & Ariss

Method Summary
 org.opensaml.SAMLAssertion getAssertion(org.opensaml.artifact.Artifact oArtifact)
          Returns the specified SAMLAssertion.
static AssertionSessionManager getHandle()
          Returns always the same instance of this object.
 void init(java.lang.Object oConfig)
          Initialization of the Assertion session manager.
 void putAssertion(org.opensaml.artifact.Artifact oArtifact, org.opensaml.SAMLAssertion oSAMLAssertion)
          Stores an Assertion indexed by the supplied Artifact.
 
Methods inherited from class org.aselect.system.storagemanager.StorageManager
containsKey, destroy, get, getAll, getCount, getExpirationTime, getTimestamp, init, put, remove, removeAll, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

init

public void init(java.lang.Object oConfig)
          throws ASelectStorageException
Initialization of the Assertion session manager.

Description:
Calls the super.init() with the given configuration.

Concurrency issues:
  • oConfig != null


  • Preconditions:
    -

    Postconditions:
    -

    Parameters:
    oConfig - Containing the Storage manager configuration
    Throws:
    ASelectStorageException - if initalization fails

    getHandle

    public static AssertionSessionManager getHandle()
    Returns always the same instance of this object.

    Description:
    Creates a new instance of this object if _oAssertionSessionManager is null

    Concurrency issues:
    -

    Preconditions:
    -

    Postconditions:
    -

    Returns:
    always the same instance of the AssertionSessionManager class

    putAssertion

    public void putAssertion(org.opensaml.artifact.Artifact oArtifact,
                             org.opensaml.SAMLAssertion oSAMLAssertion)
                      throws ASelectException
    Stores an Assertion indexed by the supplied Artifact.

    Description:
  • Verifies if the SAML Artifact already is stored
  • Stored the SAMLAssertion object with key=Artifact


  • Concurrency issues:
    -

    Preconditions:
  • oArtifact != null
  • oSAMLAssertion != null


  • Postconditions:
    -

    Parameters:
    oArtifact - SAML Artifact used as key
    oSAMLAssertion - SAMLAssertion used as value
    Throws:
    ASelectException - if storing failed

    getAssertion

    public org.opensaml.SAMLAssertion getAssertion(org.opensaml.artifact.Artifact oArtifact)
    Returns the specified SAMLAssertion.

    Description:
    Returns the SAMLAssertion from the Session Manager that is indexed by the supplies SAMLArtifact.

    Concurrency issues:
    -

    Preconditions:
  • oArtifact != null


  • Postconditions:
    -

    Parameters:
    oArtifact - SAMLArtifact object
    Returns:
    SAMLAssertion of the supplied artifact


    Copyright © 2008 SURFnet BV. All Rights Reserved.