public class MapVerifier extends LocalVerifier
RESULT_INVALID, RESULT_MISSING, RESULT_STALE, RESULT_UNKNOWN, RESULT_UNSUPPORTED, RESULT_VALID
Constructor and Description |
---|
MapVerifier()
Constructor.
|
MapVerifier(java.util.concurrent.ConcurrentMap<java.lang.String,char[]> localSecrets)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
char[] |
getLocalSecret(java.lang.String identifier)
Returns the local secret associated to a given identifier.
|
java.util.concurrent.ConcurrentMap<java.lang.String,char[]> |
getLocalSecrets()
Returns the map of local secrets.
|
void |
setLocalSecrets(java.util.Map<java.lang.String,char[]> localSecrets)
Sets the modifiable map of local secrets.
|
verify
compare, createUser, getIdentifier, getSecret, verify
public MapVerifier()
public MapVerifier(java.util.concurrent.ConcurrentMap<java.lang.String,char[]> localSecrets)
localSecrets
- The map of local secrets.public char[] getLocalSecret(java.lang.String identifier)
LocalVerifier
getLocalSecret
in class LocalVerifier
identifier
- The identifier to lookup.public java.util.concurrent.ConcurrentMap<java.lang.String,char[]> getLocalSecrets()
public void setLocalSecrets(java.util.Map<java.lang.String,char[]> localSecrets)
localSecrets
- A map of local secrets.Copyright © 2005-2024 Restlet.