Class FingerprintCertificateMapper

    • Constructor Detail

      • FingerprintCertificateMapper

        public FingerprintCertificateMapper()
        Creates a new instance of this certificate mapper. Note that all actual initialization should be done in the initializeCertificateMapper method.
    • Method Detail

      • mapCertificateToUser

        public Entry mapCertificateToUser​(Certificate[] certificateChain)
                                   throws DirectoryException
        Description copied from class: CertificateMapper
        Establishes a mapping between the information in the provided certificate chain and a single user entry in the Directory Server.
        Specified by:
        mapCertificateToUser in class CertificateMapper<FingerprintCertificateMapperCfg>
        Parameters:
        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.
        Returns:
        The entry for the user to whom the mapping was established, or null if no mapping was established and no special message is required to send back to the client.
        Throws:
        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.
      • isConfigurationAcceptable

        public boolean isConfigurationAcceptable​(CertificateMapperCfg configuration,
                                                 List<org.forgerock.i18n.LocalizableMessage> unacceptableReasons)
        Description copied from class: CertificateMapper
        Indicates whether the provided configuration is acceptable for this certificate mapper. It should be possible to call this method on an uninitialized certificate mapper instance in order to determine whether the certificate mapper would be able to use the provided configuration.

        Note that implementations which use a subclass of the provided configuration class will likely need to cast the configuration to the appropriate subclass type.
        Overrides:
        isConfigurationAcceptable in class CertificateMapper<FingerprintCertificateMapperCfg>
        Parameters:
        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.
        Returns:
        true if the provided configuration is acceptable for this certificate mapper, or false if not.
      • isConfigurationChangeAcceptable

        public boolean isConfigurationChangeAcceptable​(FingerprintCertificateMapperCfg configuration,
                                                       List<org.forgerock.i18n.LocalizableMessage> unacceptableReasons)
        Description copied from interface: ConfigurationChangeListener
        Indicates whether the proposed change to the configuration is acceptable to this change listener.
        Specified by:
        isConfigurationChangeAcceptable in interface ConfigurationChangeListener<FingerprintCertificateMapperCfg>
        Parameters:
        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.
        Returns:
        Returns true if the proposed change is acceptable, or false if it is not.