Package org.opencms.security
Interface I_CmsCredentialsResolver
- All Known Implementing Classes:
CmsDefaultCredentialsResolver
public interface I_CmsCredentialsResolver
This interface can be used to override or replace user names or passwords which occur in the OpenCms configuration,
for example to hide passwords from users who can read the configuration files.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionresolveCredential
(String credentialType, String valueFromConfiguration) Translates user names or passwords for authentication.
-
Field Details
-
DB_PASSWORD
Credential type for database pool passwords.- See Also:
-
DB_USER
Credential type for database pool user names.- See Also:
-
LDAP_PASSWORD
Credential type for LDAP passwords.- See Also:
-
LDAP_USER
Credential type for LDAP users.- See Also:
-
-
Method Details
-
resolveCredential
Translates user names or passwords for authentication.- Parameters:
credentialType
- the type of credential to resolve (this is equal to one of the constants defined in this interface)valueFromConfiguration
- the original value which was read from the configuration file (may be null)- Returns:
- the credential value that should be used for authentication
-