@Service public class MemorySingleSignon extends java.lang.Object implements SingleSignon
Constructor and Description |
---|
MemorySingleSignon() |
Modifier and Type | Method and Description |
---|---|
java.security.Principal |
get(java.lang.String id)
Returns any saved single signon entry.
|
int |
getCacheSize()
Returns the size of the principal cache.
|
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)
Adds a principal to the cache
|
void |
setCacheSize(int size)
Sets the size of the principal cache.
|
public int getCacheSize()
public void setCacheSize(int size)
@PostConstruct public void init()
public java.security.Principal get(java.lang.String id)
get
in interface SingleSignon
public void put(java.lang.String id, java.security.Principal user)
put
in interface SingleSignon
public boolean remove(java.lang.String id)
remove
in interface SingleSignon