com.caucho.security
Class ClusterSingleSignon

java.lang.Object
  extended by com.caucho.security.ClusterSingleSignon
All Implemented Interfaces:
SingleSignon

@Service
public class ClusterSingleSignon
extends java.lang.Object
implements SingleSignon

Cluster-based cache for single-signon.

Since:
Resin 4.0.0

Constructor Summary
ClusterSingleSignon()
           
ClusterSingleSignon(java.lang.String name)
           
 
Method Summary
 java.security.Principal get(java.lang.String id)
          Returns any saved single signon entry.
 void init()
          Initialize the single signon.
 void put(java.lang.String id, java.security.Principal user)
          Adds a principal to the cache
 boolean remove(java.lang.String id)
          Removes a principal from the single-signon
 void setName(java.lang.String name)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClusterSingleSignon

public ClusterSingleSignon()

ClusterSingleSignon

public ClusterSingleSignon(java.lang.String name)
Method Detail

setName

public void setName(java.lang.String name)

init

@PostConstruct
public void init()
Initialize the single signon.


get

public java.security.Principal get(java.lang.String id)
Returns any saved single signon entry.

Specified by:
get in interface SingleSignon

put

public void put(java.lang.String id,
                java.security.Principal user)
Adds a principal to the cache

Specified by:
put in interface SingleSignon

remove

public boolean remove(java.lang.String id)
Removes a principal from the single-signon

Specified by:
remove in interface SingleSignon

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object