/** * Determine whether the given credential type is supported. Will be {@code false} if the credential type requires * an algorithm name; in this case, use {@link #isCredentialTypeSupported(Class, String)} instead. * * @param credentialType the credential type (must not be {@code null}) * @return {@code true} if the credential type is supported, {@code false} otherwise */ public boolean isCredentialTypeSupported(final Class<? extends Credential> credentialType) { return isCredentialTypeSupported(credentialType, null); }
/** * Determine whether the given credential type is supported for the given algorithm name. * * @param credentialType the credential type (must not be {@code null}) * @param algorithmName the algorithm name, or {@code null} to indicate that no algorithm name will be available * @param parameterSpec the parameters, or {@code null} if no parameters are present in the credential * @return {@code true} if the credential type is supported, {@code false} otherwise */ public boolean isCredentialTypeSupported(final Class<? extends Credential> credentialType, final String algorithmName, final AlgorithmParameterSpec parameterSpec) { Assert.checkNotNullParam("credentialType", credentialType); return isCredentialTypeSupported(credentialType, algorithmName) && (this.parameterSpec == null || this.parameterSpec.equals(parameterSpec)); }
/** * Determine whether the given credential type is supported. Will be {@code false} if the credential type requires * an algorithm name; in this case, use {@link #isCredentialTypeSupported(Class, String)} instead. * * @param credentialType the credential type (must not be {@code null}) * @return {@code true} if the credential type is supported, {@code false} otherwise */ public boolean isCredentialTypeSupported(final Class<? extends Credential> credentialType) { return isCredentialTypeSupported(credentialType, null); }
/** * Determine whether the given credential type is supported. Will be {@code false} if the credential type requires * an algorithm name; in this case, use {@link #isCredentialTypeSupported(Class, String)} instead. * * @param credentialType the credential type (must not be {@code null}) * @return {@code true} if the credential type is supported, {@code false} otherwise */ public boolean isCredentialTypeSupported(final Class<? extends Credential> credentialType) { return isCredentialTypeSupported(credentialType, null); }
/** * Determine whether the given credential type is supported. Will be {@code false} if the credential type requires * an algorithm name; in this case, use {@link #isCredentialTypeSupported(Class, String)} instead. * * @param credentialType the credential type (must not be {@code null}) * @return {@code true} if the credential type is supported, {@code false} otherwise */ public boolean isCredentialTypeSupported(final Class<? extends Credential> credentialType) { return isCredentialTypeSupported(credentialType, null); }
/** * Determine whether the given credential type is supported for the given algorithm name. * * @param credentialType the credential type (must not be {@code null}) * @param algorithmName the algorithm name, or {@code null} to indicate that no algorithm name will be available * @param parameterSpec the parameters, or {@code null} if no parameters are present in the credential * @return {@code true} if the credential type is supported, {@code false} otherwise */ public boolean isCredentialTypeSupported(final Class<? extends Credential> credentialType, final String algorithmName, final AlgorithmParameterSpec parameterSpec) { Assert.checkNotNullParam("credentialType", credentialType); return isCredentialTypeSupported(credentialType, algorithmName) && (this.parameterSpec == null || this.parameterSpec.equals(parameterSpec)); }
/** * Determine whether the given credential type is supported for the given algorithm name. * * @param credentialType the credential type (must not be {@code null}) * @param algorithmName the algorithm name, or {@code null} to indicate that no algorithm name will be available * @param parameterSpec the parameters, or {@code null} if no parameters are present in the credential * @return {@code true} if the credential type is supported, {@code false} otherwise */ public boolean isCredentialTypeSupported(final Class<? extends Credential> credentialType, final String algorithmName, final AlgorithmParameterSpec parameterSpec) { Assert.checkNotNullParam("credentialType", credentialType); return isCredentialTypeSupported(credentialType, algorithmName) && (this.parameterSpec == null || this.parameterSpec.equals(parameterSpec)); }
/** * Determine whether the given credential type is supported for the given algorithm name. * * @param credentialType the credential type (must not be {@code null}) * @param algorithmName the algorithm name, or {@code null} to indicate that no algorithm name will be available * @param parameterSpec the parameters, or {@code null} if no parameters are present in the credential * @return {@code true} if the credential type is supported, {@code false} otherwise */ public boolean isCredentialTypeSupported(final Class<? extends Credential> credentialType, final String algorithmName, final AlgorithmParameterSpec parameterSpec) { Assert.checkNotNullParam("credentialType", credentialType); return isCredentialTypeSupported(credentialType, algorithmName) && (this.parameterSpec == null || this.parameterSpec.equals(parameterSpec)); }