public class NestedCredentialHandler extends java.lang.Object implements CredentialHandler
Constructor and Description |
---|
NestedCredentialHandler() |
Modifier and Type | Method and Description |
---|---|
void |
addCredentialHandler(CredentialHandler handler) |
CredentialHandler[] |
getCredentialHandlers() |
boolean |
matches(java.lang.String inputCredentials,
java.lang.String storedCredentials)
Checks to see if the input credentials match the stored credentials
|
java.lang.String |
mutate(java.lang.String inputCredentials)
The input credentials will be passed to the first nested
CredentialHandler . |
public boolean matches(java.lang.String inputCredentials, java.lang.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 java.lang.String mutate(java.lang.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)
public CredentialHandler[] getCredentialHandlers()
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.