Class OtpCredentialLoader

    • Field Detail

      • algorithmAttributeName

        private final String algorithmAttributeName
      • hashAttributeName

        private final String hashAttributeName
      • seedAttributeName

        private final String seedAttributeName
      • sequenceAttributeName

        private final String sequenceAttributeName
    • Constructor Detail

      • OtpCredentialLoader

        OtpCredentialLoader​(String algorithmAttributeName,
                            String hashAttributeName,
                            String seedAttributeName,
                            String sequenceAttributeName)
    • Method Detail

      • getCredentialAcquireSupport

        public SupportLevel getCredentialAcquireSupport​(Class<? extends Credential> credentialType,
                                                        String algorithmName,
                                                        AlgorithmParameterSpec parameterSpec)
        Description copied from interface: CredentialLoader
        Determine whether a given credential is definitely supported, possibly supported (for some identities), or definitely not supported.

        A DirContextFactory is made available if the directory server is going to be queried but most likely this call will need to be generic as querying a whole directory is not realistic.

        Note: The DirContextFactory approach will be evolved further for better referral support so it makes it easier for it to be passed in for each call.

        Specified by:
        getCredentialAcquireSupport in interface CredentialLoader
        Parameters:
        credentialType - the credential type (must not be null)
        algorithmName - the credential algorithm name
        parameterSpec - the algorithm parameters to match, or null if any parameters are acceptable or the credential type does not support algorithm parameters
        Returns:
        the level of support for this credential type
      • addRequiredIdentityAttributes

        public void addRequiredIdentityAttributes​(Collection<String> attributes)
        Description copied from interface: CredentialLoader
        Construct set of LDAP attributes, which should be loaded as part of the identity from identity entry.
        Specified by:
        addRequiredIdentityAttributes in interface CredentialLoader
        Parameters:
        attributes - output collection of attributes names, into which should be added