|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.synapse.securevault.SecretResolver
public class SecretResolver
Responsible for resolving secrets such as password. The secrets this SecretResolver should be resolved , can be given as protected Tokens and the use of this class can explicitly check whether a token is protected.
| Constructor Summary | |
|---|---|
SecretResolver()
|
|
| Method Summary | |
|---|---|
void |
addProtectedToken(String token)
Registers a token as a Protected Token |
void |
init(SecretCallbackHandler secretCallbackHandler)
Initializes by giving an instance of SecretCallbackHandler to be used to
retrieve secrets |
boolean |
isInitialized()
Checks the state of the rule engine. |
boolean |
isTokenProtected(String token)
Checks whether a token is a Protected Token |
String |
resolve(String encryptedPassword)
Resolved given password using an instance of a PasswordProvider |
String |
resolve(String encryptedPassword,
String prompt)
Resolved given password using an instance of a PasswordProvider |
void |
shutDown()
Shutdown the secret resolver |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SecretResolver()
| Method Detail |
|---|
public void init(SecretCallbackHandler secretCallbackHandler)
SecretCallbackHandler to be used to
retrieve secrets
secretCallbackHandler - SecretCallbackHandler instancepublic String resolve(String encryptedPassword)
encryptedPassword - Encrypted password
public String resolve(String encryptedPassword,
String prompt)
encryptedPassword - Encrypted passwordprompt - to be used to interact with user
public void addProtectedToken(String token)
token - String representation of a tokenpublic boolean isTokenProtected(String token)
token - String representation of a token
true if the token is a Protected Tokenpublic boolean isInitialized()
true if the rule engine has been initializedpublic void shutDown()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||