Top Fields Constructors Methods
org.apache.catalina.realm

public Class NestedCredentialHandler

extends Object
implements CredentialHandler
Class Inheritance
All Implemented Interfaces
org.apache.catalina.CredentialHandler
Imports
java.util.ArrayList, .List, org.apache.catalina.CredentialHandler

Field Summary

Modifier and TypeField and Description
private final List<CredentialHandler>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
public CredentialHandler[]
public boolean
matches(String
User provided credentials
inputCredentials
,
String
Credentials stored in the Realm
storedCredentials
)

Implements org.apache.catalina.CredentialHandler.matches.

Checks to see if the input credentials match the stored credentials

public String
mutate(String
User provided credentials
inputCredentials
)

Implements org.apache.catalina.CredentialHandler.mutate.

The input credentials will be passed to the first nested CredentialHandler.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

credentialHandlersback to summary
private final List<CredentialHandler> credentialHandlers

Constructor Detail

NestedCredentialHandlerback to summary
public NestedCredentialHandler()

Method Detail

addCredentialHandlerback to summary
public void addCredentialHandler(CredentialHandler handler)
getCredentialHandlersback to summary
public CredentialHandler[] getCredentialHandlers()
matchesback to summary
public boolean matches(String inputCredentials, String storedCredentials)

Implements org.apache.catalina.CredentialHandler.matches.

Doc from org.apache.catalina.CredentialHandler.matches.

Checks to see if the input credentials match the stored credentials

Parameters
inputCredentials:String

User provided credentials

storedCredentials:String

Credentials stored in the Realm

Returns:boolean

true if the inputCredentials match the storedCredentials, otherwise false

Annotations
@Override
mutateback to summary
public String mutate(String inputCredentials)

Implements org.apache.catalina.CredentialHandler.mutate.

Doc from org.apache.catalina.CredentialHandler.mutate.

The input credentials will be passed to the first nested CredentialHandler. If no nested CredentialHandler are configured then null will be returned. Generates the equivalent stored credentials for the given input credentials.

Parameters
inputCredentials:String

User provided credentials

Returns:String

The equivalent stored credentials for the given input credentials

Annotations
@Override