public class SubjectDNToUserAttributeCertificateMapper extends CertificateMapper<org.forgerock.opendj.server.config.server.SubjectDNToUserAttributeCertificateMapperCfg> implements org.forgerock.opendj.config.server.ConfigurationChangeListener<org.forgerock.opendj.server.config.server.SubjectDNToUserAttributeCertificateMapperCfg>
| Constructor and Description |
|---|
SubjectDNToUserAttributeCertificateMapper()
Creates a new instance of this certificate mapper.
|
| Modifier and Type | Method and Description |
|---|---|
org.forgerock.opendj.config.server.ConfigChangeResult |
applyConfigurationChange(org.forgerock.opendj.server.config.server.SubjectDNToUserAttributeCertificateMapperCfg configuration) |
void |
finalizeCertificateMapper()
Performs any finalization that may be necessary for this
certificate mapper.
|
void |
initializeCertificateMapper(org.forgerock.opendj.server.config.server.SubjectDNToUserAttributeCertificateMapperCfg configuration)
Initializes this certificate mapper based on the information in
the provided configuration entry.
|
boolean |
isConfigurationAcceptable(org.forgerock.opendj.server.config.server.CertificateMapperCfg configuration,
List<org.forgerock.i18n.LocalizableMessage> unacceptableReasons)
Indicates whether the provided configuration is acceptable for
this certificate mapper.
|
boolean |
isConfigurationChangeAcceptable(org.forgerock.opendj.server.config.server.SubjectDNToUserAttributeCertificateMapperCfg configuration,
List<org.forgerock.i18n.LocalizableMessage> unacceptableReasons) |
Entry |
mapCertificateToUser(Certificate[] certificateChain)
Establishes a mapping between the information in the provided
certificate chain and a single user entry in the Directory
Server.
|
public SubjectDNToUserAttributeCertificateMapper()
initializeCertificateMapper method.public void initializeCertificateMapper(org.forgerock.opendj.server.config.server.SubjectDNToUserAttributeCertificateMapperCfg configuration)
throws org.forgerock.opendj.config.server.ConfigException,
InitializationException
CertificateMapperinitializeCertificateMapper in class CertificateMapper<org.forgerock.opendj.server.config.server.SubjectDNToUserAttributeCertificateMapperCfg>configuration - The configuration that should be used to
intialize this certificate mapper.org.forgerock.opendj.config.server.ConfigException - If the provided entry does not contain
a valid certificate mapper
configuration.InitializationException - If a problem occurs during
initialization that is not
related to the server
configuration.public void finalizeCertificateMapper()
CertificateMapperfinalizeCertificateMapper in class CertificateMapper<org.forgerock.opendj.server.config.server.SubjectDNToUserAttributeCertificateMapperCfg>public Entry mapCertificateToUser(Certificate[] certificateChain) throws DirectoryException
CertificateMappermapCertificateToUser in class CertificateMapper<org.forgerock.opendj.server.config.server.SubjectDNToUserAttributeCertificateMapperCfg>certificateChain - The certificate chain presented by the
client during SSL negotiation. The
peer certificate will be listed first,
followed by the ordered issuer chain
as appropriate.null if no mapping was
established and no special message is required to send
back to the client.DirectoryException - If a problem occurred while
attempting to establish the mapping.
This may include internal failures,
a mapping which matches multiple
users, or any other case in which an
error message should be returned to
the client.public boolean isConfigurationAcceptable(org.forgerock.opendj.server.config.server.CertificateMapperCfg configuration,
List<org.forgerock.i18n.LocalizableMessage> unacceptableReasons)
CertificateMapperisConfigurationAcceptable in class CertificateMapper<org.forgerock.opendj.server.config.server.SubjectDNToUserAttributeCertificateMapperCfg>configuration - The certificate mapper configuration
for which to make the determination.unacceptableReasons - A list that may be used to hold the
reasons that the provided
configuration is not acceptable.true if the provided configuration is acceptable
for this certificate mapper, or false if not.public boolean isConfigurationChangeAcceptable(org.forgerock.opendj.server.config.server.SubjectDNToUserAttributeCertificateMapperCfg configuration,
List<org.forgerock.i18n.LocalizableMessage> unacceptableReasons)
isConfigurationChangeAcceptable in interface org.forgerock.opendj.config.server.ConfigurationChangeListener<org.forgerock.opendj.server.config.server.SubjectDNToUserAttributeCertificateMapperCfg>public org.forgerock.opendj.config.server.ConfigChangeResult applyConfigurationChange(org.forgerock.opendj.server.config.server.SubjectDNToUserAttributeCertificateMapperCfg configuration)
applyConfigurationChange in interface org.forgerock.opendj.config.server.ConfigurationChangeListener<org.forgerock.opendj.server.config.server.SubjectDNToUserAttributeCertificateMapperCfg>Copyright © 2010-2020 Wren Security. All Rights Reserved.