public class SubjectAttributeToUserAttributeCertificateMapper extends CertificateMapper<SubjectAttributeToUserAttributeCertificateMapperCfg>
Constructor and Description |
---|
SubjectAttributeToUserAttributeCertificateMapper()
Creates a new instance of this certificate mapper.
|
Modifier and Type | Method and Description |
---|---|
protected ConfigChangeResult |
applyConfigurationChange0(SubjectAttributeToUserAttributeCertificateMapperCfg configuration)
Implements certificate mapper specific actions when updating the configuration.
|
void |
finalizeCertificateMapper()
Performs any finalization that may be necessary for this certificate mapper.
|
protected void |
initializeCertificateMapper0(SubjectAttributeToUserAttributeCertificateMapperCfg configuration)
Implements certificate mapper specific actions when initializing the certificate mapper.
|
boolean |
isConfigurationAcceptable(SubjectAttributeToUserAttributeCertificateMapperCfg configuration,
List<LocalizableMessage> unacceptableReasons)
Indicates whether the provided configuration is acceptable for this certificate mapper.
|
boolean |
isConfigurationChangeAcceptable(SubjectAttributeToUserAttributeCertificateMapperCfg configuration,
List<LocalizableMessage> unacceptableReasons)
Indicates whether the proposed change to the configuration is acceptable
to this change listener.
|
protected Entry |
mapCertificateToUser0(Certificate[] certificateChain)
Implements certificate mapper specific logic for mapping the provided certificate to a user entry.
|
applyConfigurationChange, initializeCertificateMapper, mapCertificateToUser
public SubjectAttributeToUserAttributeCertificateMapper()
initializeCertificateMapper
method.protected void initializeCertificateMapper0(SubjectAttributeToUserAttributeCertificateMapperCfg configuration) throws ConfigException
CertificateMapper
initializeCertificateMapper0
in class CertificateMapper<SubjectAttributeToUserAttributeCertificateMapperCfg>
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.public void finalizeCertificateMapper()
CertificateMapper
protected Entry mapCertificateToUser0(Certificate[] certificateChain) throws LdapException
CertificateMapper
mapCertificateToUser0
in class CertificateMapper<SubjectAttributeToUserAttributeCertificateMapperCfg>
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.LdapException
- 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(SubjectAttributeToUserAttributeCertificateMapperCfg configuration, List<LocalizableMessage> unacceptableReasons)
CertificateMapper
isConfigurationAcceptable
in class CertificateMapper<SubjectAttributeToUserAttributeCertificateMapperCfg>
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(SubjectAttributeToUserAttributeCertificateMapperCfg configuration, List<LocalizableMessage> unacceptableReasons)
ConfigurationChangeListener
isConfigurationChangeAcceptable
in interface ConfigurationChangeListener<SubjectAttributeToUserAttributeCertificateMapperCfg>
isConfigurationChangeAcceptable
in class CertificateMapper<SubjectAttributeToUserAttributeCertificateMapperCfg>
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.protected ConfigChangeResult applyConfigurationChange0(SubjectAttributeToUserAttributeCertificateMapperCfg configuration)
CertificateMapper
applyConfigurationChange0
in class CertificateMapper<SubjectAttributeToUserAttributeCertificateMapperCfg>
configuration
- the new configuration to useCopyright 2010-2022 ForgeRock AS.