public class NestedCredentialHandler extends Object implements CredentialHandler
| Constructor and Description |
|---|
NestedCredentialHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
addCredentialHandler(CredentialHandler handler) |
CredentialHandler[] |
getCredentialHandlers() |
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)
CredentialHandlermatches in interface CredentialHandlerinputCredentials - User provided credentialsstoredCredentials - Credentials stored in the Realmtrue if the inputCredentials match the
storedCredentials, otherwise falsepublic 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 CredentialHandlerinputCredentials - User provided credentialspublic void addCredentialHandler(CredentialHandler handler)
public CredentialHandler[] getCredentialHandlers()
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.