public class SubjectDNToUserAttributeCertificateMapper extends CertificateMapper<SubjectDnToUserAttributeCertificateMapperCfg> implements ConfigurationChangeListener<SubjectDnToUserAttributeCertificateMapperCfg>
Constructor and Description |
---|
SubjectDNToUserAttributeCertificateMapper()
Creates a new instance of this certificate mapper.
|
Modifier and Type | Method and Description |
---|---|
ConfigChangeResult |
applyConfigurationChange(SubjectDnToUserAttributeCertificateMapperCfg configuration)
Applies the configuration changes to this change listener.
|
void |
finalizeCertificateMapper()
Performs any finalization that may be necessary for this certificate mapper.
|
void |
initializeCertificateMapper(SubjectDnToUserAttributeCertificateMapperCfg configuration)
Initializes this certificate mapper based on the information in the provided configuration entry.
|
boolean |
isConfigurationAcceptable(SubjectDnToUserAttributeCertificateMapperCfg configuration,
List<LocalizableMessage> unacceptableReasons)
Indicates whether the provided configuration is acceptable for this certificate mapper.
|
boolean |
isConfigurationChangeAcceptable(SubjectDnToUserAttributeCertificateMapperCfg configuration,
List<LocalizableMessage> unacceptableReasons)
Indicates whether the proposed change to the configuration is acceptable
to this change listener.
|
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(SubjectDnToUserAttributeCertificateMapperCfg configuration) throws ConfigException, InitializationException
CertificateMapper
initializeCertificateMapper
in class CertificateMapper<SubjectDnToUserAttributeCertificateMapperCfg>
configuration
- The configuration that should be used to intialize this certificate mapper.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()
CertificateMapper
finalizeCertificateMapper
in class CertificateMapper<SubjectDnToUserAttributeCertificateMapperCfg>
public Entry mapCertificateToUser(Certificate[] certificateChain) throws DirectoryException
CertificateMapper
mapCertificateToUser
in class CertificateMapper<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(SubjectDnToUserAttributeCertificateMapperCfg configuration, List<LocalizableMessage> unacceptableReasons)
CertificateMapper
isConfigurationAcceptable
in class CertificateMapper<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(SubjectDnToUserAttributeCertificateMapperCfg configuration, List<LocalizableMessage> unacceptableReasons)
ConfigurationChangeListener
isConfigurationChangeAcceptable
in interface ConfigurationChangeListener<SubjectDnToUserAttributeCertificateMapperCfg>
configuration
- The new configuration containing the changes.unacceptableReasons
- A list that can be used to hold messages about why the
provided configuration is not acceptable.true
if the proposed change is acceptable,
or false
if it is not.public ConfigChangeResult applyConfigurationChange(SubjectDnToUserAttributeCertificateMapperCfg configuration)
ConfigurationChangeListener
applyConfigurationChange
in interface ConfigurationChangeListener<SubjectDnToUserAttributeCertificateMapperCfg>
configuration
- The new configuration containing the changes.Copyright 2010-2020 ForgeRock AS.