public class SecretResolver extends Object
Constructor and Description |
---|
SecretResolver() |
Modifier and Type | Method and Description |
---|---|
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
|
public void init(SecretCallbackHandler secretCallbackHandler)
SecretCallbackHandler
to be used to
retrieve secretssecretCallbackHandler
- SecretCallbackHandler
instancepublic String resolve(String encryptedPassword)
encryptedPassword
- Encrypted passwordpublic String resolve(String encryptedPassword, String prompt)
encryptedPassword
- Encrypted passwordprompt
- to be used to interact with userpublic void addProtectedToken(String token)
token
- String
representation of a tokenpublic boolean isTokenProtected(String token)
token
- String
representation of a tokentrue
if the token is a Protected Tokenpublic boolean isInitialized()
true if the rule engine has been initialized
public void shutDown()
Copyright © 2005-2017 Apache Software Foundation. All Rights Reserved.