Package org.apache.catalina.realm
Class NestedCredentialHandler
- java.lang.Object
- 
- org.apache.catalina.realm.NestedCredentialHandler
 
- 
- All Implemented Interfaces:
- CredentialHandler
 
 public class NestedCredentialHandler extends java.lang.Object implements CredentialHandler 
- 
- 
Constructor SummaryConstructors Constructor Description NestedCredentialHandler()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCredentialHandler(CredentialHandler handler)CredentialHandler[]getCredentialHandlers()booleanmatches(java.lang.String inputCredentials, java.lang.String storedCredentials)Checks to see if the input credentials match the stored credentialsjava.lang.Stringmutate(java.lang.String inputCredentials)The input credentials will be passed to the first nestedCredentialHandler.
 
- 
- 
- 
Method Detail- 
matchespublic boolean matches(java.lang.String inputCredentials, java.lang.String storedCredentials)Description copied from interface:CredentialHandlerChecks to see if the input credentials match the stored credentials- Specified by:
- matchesin interface- CredentialHandler
- Parameters:
- inputCredentials- User provided credentials
- storedCredentials- Credentials stored in the- Realm
- Returns:
- trueif the inputCredentials match the storedCredentials, otherwise- false
 
 - 
mutatepublic java.lang.String mutate(java.lang.String inputCredentials) The input credentials will be passed to the first nestedCredentialHandler. If no nestedCredentialHandlerare configured thennullwill be returned. Generates the equivalent stored credentials for the given input credentials.- Specified by:
- mutatein interface- CredentialHandler
- Parameters:
- inputCredentials- User provided credentials
- Returns:
- The equivalent stored credentials for the given input credentials
 
 - 
addCredentialHandlerpublic void addCredentialHandler(CredentialHandler handler) 
 - 
getCredentialHandlerspublic CredentialHandler[] getCredentialHandlers() 
 
- 
 
-