Copyright© 2008-2022 Sitevision AB, all rights reserved.
public interface SecretStore
The store contains secrets about the current user, which are encrypted, typically by using the password of the user.
The secret store can be accessed by casting the user object to this interface. The user object can be accessed through the Portlet API (request.getUserPrincipal()) or by using the principal in the Subject through JAAS.
Secret
Modifier and Type | Method and Description |
---|---|
Object |
getSecret(Object aKey)
Gets a secret for a specified key.
|
Map |
getSecrets()
Gets all secrets.
|
void |
removeAllSecrets() |
void |
removeSecret(Object aKey)
Removes a secret for a specified key.
|
void |
setSecret(Object aKey,
Object aSecret)
Sets a secret for a specified key.
|
void |
setSecrets(Map<Object,Object> aSecrets)
Sets a map of secrets.
|
void setSecret(Object aKey, Object aSecret)
aKey
- the identifier for secretaSecret
- the secretObject getSecret(Object aKey)
aKey
- the identifier for a secretvoid removeSecret(Object aKey)
aKey
- the identifier for a secretMap getSecrets()
void setSecrets(Map<Object,Object> aSecrets)
aSecrets
- the secretsvoid removeAllSecrets()
Sitevision - Portal and Content Management Made Easy
Sitevision is an advanced Java enterprise portal product and a portlet container (JSR 286) that implements Java Content Repository (JSR 283).
Copyright© 2008-2022 Sitevision AB, all rights reserved.