Interface IdentityCredentialLoader

    • Method Detail

      • getCredentialAcquireSupport

        SupportLevel getCredentialAcquireSupport​(Class<? extends Credential> credentialType,
                                                 String algorithmName,
                                                 AlgorithmParameterSpec parameterSpec,
                                                 Supplier<Provider[]> providers)
        Determine whether a given credential is definitely supported, possibly supported, or definitely not supported.
        Parameters:
        credentialType - the credential type (must not be null)
        algorithmName - the credential algorithm name, if any
        parameterSpec - the algorithm parameters to match, or null if any parameters are acceptable or the credential type does not support algorithm parameters
        providers - the providers to use when checking ability to obtain the credential
        Returns:
        the level of support for this credential type
      • getCredential

        <C extends Credential> C getCredential​(Class<C> credentialType,
                                               String algorithmName,
                                               AlgorithmParameterSpec parameterSpec,
                                               Supplier<Provider[]> providers)
        Acquire a credential of the given type.
        Type Parameters:
        C - the type to which should be credential casted
        Parameters:
        credentialType - the credential type (must not be null)
        algorithmName - the credential algorithm name, if any
        parameterSpec - the algorithm parameters to match, or null if any parameters are acceptable or the credential type does not support algorithm parameters
        providers - the providers to use when obtaining the credential
        Returns:
        the credential, or null if the principal has no credential of that name or cannot be casted to that type