public class NestedCredentialHandler extends Object implements CredentialHandler
Constructor and Description |
---|
NestedCredentialHandler() |
Modifier and Type | Method and Description |
---|---|
void |
addCredentialHandler(CredentialHandler handler) |
boolean |
matches(String inputCredentials,
String storedCredentials)
Checks to see if the input credentials match the stored credentials
|
String |
mutate(String inputCredentials)
The input credentials will be passed to the first nested
CredentialHandler . |
public boolean matches(String inputCredentials, String storedCredentials)
CredentialHandler
matches
in interface CredentialHandler
inputCredentials
- User provided credentialsstoredCredentials
- Credentials stored in the Realm
true
if the inputCredentials match the
storedCredentials, otherwise false
public String mutate(String inputCredentials)
CredentialHandler
. If no nested CredentialHandler
are
configured then null
will be returned.
Generates the equivalent stored credentials for the given input
credentials.mutate
in interface CredentialHandler
inputCredentials
- User provided credentialspublic void addCredentialHandler(CredentialHandler handler)
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.