Top Description Methods
org.apache.catalina

public Interface CredentialHandler

Known Direct Implementers
org.apache.catalina.realm.CombinedRealm.CombinedRealmCredentialHandler, org.apache.catalina.realm.DigestCredentialHandlerBase, org.apache.catalina.realm.NestedCredentialHandler

This interface is used by the Realm to compare the user provided credentials with the credentials stored in the Realm for that user.

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if the inputCredentials match the storedCredentials, otherwise false
matches
(String
User provided credentials
inputCredentials
,
String
Credentials stored in the Realm
storedCredentials
)

Checks to see if the input credentials match the stored credentials

public String

Returns:

The equivalent stored credentials for the given input credentials
mutate
(String
User provided credentials
inputCredentials
)

Generates the equivalent stored credentials for the given input credentials.

Method Detail

matchesback to summary
public boolean matches(String inputCredentials, String storedCredentials)

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

mutateback to summary
public String mutate(String inputCredentials)

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