PicketLink Federation Core 2.1.6.Final-redhat-2

org.picketlink.identity.federation.web.core
Class IdentityServer.STACK

java.lang.Object
  extended by org.picketlink.identity.federation.web.core.IdentityServer.STACK
All Implemented Interfaces:
IdentityParticipantStack
Enclosing class:
IdentityServer

public static class IdentityServer.STACK
extends Object
implements IdentityParticipantStack


Constructor Summary
IdentityServer.STACK()
           
 
Method Summary
 void createSession(String id)
          Create a session
 boolean deRegisterTransitParticipant(String sessionID, String participant)
          Deregister a participant as in transit in a logout interaction
 Boolean getBinding(String participant)
           For a particular participant, indicate whether it supports POST or REDIRECT binding.
 int getNumOfParticipantsInTransit(String sessionID)
          Return the number of participants in transit
 int getParticipants(String sessionID)
          For a given identity session, return the number of participants
 String peek(String sessionID)
          Peek at the most recent participant in the session
 String pop(String sessionID)
          Remove the most recent participant in the session
 void register(String sessionID, String participant, boolean postBinding)
          Register a participant in a session
 boolean registerTransitParticipant(String sessionID, String participant)
          Register a participant as in transit in a logout interaction
 void removeSession(String id)
          Remove a session
 int totalSessions()
          The total number of sessions active
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IdentityServer.STACK

public IdentityServer.STACK()
Method Detail

peek

public String peek(String sessionID)
Description copied from interface: IdentityParticipantStack
Peek at the most recent participant in the session

Specified by:
peek in interface IdentityParticipantStack
Returns:
See Also:
IdentityParticipantStack.peek(java.lang.String)

pop

public String pop(String sessionID)
Description copied from interface: IdentityParticipantStack
Remove the most recent participant in the session

Specified by:
pop in interface IdentityParticipantStack
Returns:
See Also:
IdentityParticipantStack.pop(java.lang.String)

register

public void register(String sessionID,
                     String participant,
                     boolean postBinding)
Description copied from interface: IdentityParticipantStack
Register a participant in a session

Specified by:
register in interface IdentityParticipantStack
See Also:
IdentityParticipantStack.register(java.lang.String, java.lang.String, boolean)

getParticipants

public int getParticipants(String sessionID)
Description copied from interface: IdentityParticipantStack
For a given identity session, return the number of participants

Specified by:
getParticipants in interface IdentityParticipantStack
Returns:
See Also:
IdentityParticipantStack.getParticipants(java.lang.String)

registerTransitParticipant

public boolean registerTransitParticipant(String sessionID,
                                          String participant)
Description copied from interface: IdentityParticipantStack
Register a participant as in transit in a logout interaction

Specified by:
registerTransitParticipant in interface IdentityParticipantStack
Returns:
See Also:
IdentityParticipantStack.registerTransitParticipant(java.lang.String, java.lang.String)

deRegisterTransitParticipant

public boolean deRegisterTransitParticipant(String sessionID,
                                            String participant)
Description copied from interface: IdentityParticipantStack
Deregister a participant as in transit in a logout interaction

Specified by:
deRegisterTransitParticipant in interface IdentityParticipantStack
Returns:
See Also:
IdentityParticipantStack.deRegisterTransitParticipant(java.lang.String, java.lang.String)

getNumOfParticipantsInTransit

public int getNumOfParticipantsInTransit(String sessionID)
Description copied from interface: IdentityParticipantStack
Return the number of participants in transit

Specified by:
getNumOfParticipantsInTransit in interface IdentityParticipantStack
Returns:
See Also:
IdentityParticipantStack.getNumOfParticipantsInTransit(java.lang.String)

getBinding

public Boolean getBinding(String participant)
Description copied from interface: IdentityParticipantStack

For a particular participant, indicate whether it supports POST or REDIRECT binding.

NOTE: true: POST, false: REDIRECT, null: does not exist

Specified by:
getBinding in interface IdentityParticipantStack
Returns:
See Also:
IdentityParticipantStack.getBinding(java.lang.String)

totalSessions

public int totalSessions()
Description copied from interface: IdentityParticipantStack
The total number of sessions active

Specified by:
totalSessions in interface IdentityParticipantStack
Returns:
See Also:
IdentityParticipantStack.totalSessions()

createSession

public void createSession(String id)
Description copied from interface: IdentityParticipantStack
Create a session

Specified by:
createSession in interface IdentityParticipantStack
See Also:
IdentityParticipantStack.createSession(java.lang.String)

removeSession

public void removeSession(String id)
Description copied from interface: IdentityParticipantStack
Remove a session

Specified by:
removeSession in interface IdentityParticipantStack
See Also:
IdentityParticipantStack.removeSession(java.lang.String)

PicketLink Federation Core 2.1.6.Final-redhat-2

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.