public class SubjectEqualsDNCertificateMapper extends CertificateMapper<org.forgerock.opendj.server.config.server.SubjectEqualsDnCertificateMapperCfg>
Constructor and Description |
---|
SubjectEqualsDNCertificateMapper()
Creates a new instance of this certificate mapper.
|
Modifier and Type | Method and Description |
---|---|
void |
initializeCertificateMapper(org.forgerock.opendj.server.config.server.SubjectEqualsDnCertificateMapperCfg configuration)
Initializes this certificate mapper based on the information in
the provided configuration entry.
|
Entry |
mapCertificateToUser(Certificate[] certificateChain)
Establishes a mapping between the information in the provided certificate
chain to the DN of a single user in the Directory Server.
|
finalizeCertificateMapper, isConfigurationAcceptable
public SubjectEqualsDNCertificateMapper()
initializeCertificateMapper
method.public void initializeCertificateMapper(org.forgerock.opendj.server.config.server.SubjectEqualsDnCertificateMapperCfg configuration) throws org.forgerock.opendj.config.server.ConfigException, InitializationException
CertificateMapper
initializeCertificateMapper
in class CertificateMapper<org.forgerock.opendj.server.config.server.SubjectEqualsDnCertificateMapperCfg>
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 Entry mapCertificateToUser(Certificate[] certificateChain) throws DirectoryException
mapCertificateToUser
in class CertificateMapper<org.forgerock.opendj.server.config.server.SubjectEqualsDnCertificateMapperCfg>
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.Copyright © 2010-2017 ForgeRock AS. All Rights Reserved.