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
FieldsModifier and TypeFieldDescriptionstatic final StringCredential type for database pool passwords.static final StringCredential type for database pool user names.static final StringCredential type for LDAP passwords.static final StringCredential type for LDAP users.static final StringCredential type for S3 access keys.static final StringCredential type for S3 secret keys. -
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:
-
S3_ACCESS_KEY
Credential type for S3 access keys.- See Also:
-
S3_SECRET_KEY
Credential type for S3 secret keys.- 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
-