/** * @deprecated Transition method; remove before GA. */ default SupportLevel getCredentialAcquireSupport(Class<? extends Credential> credentialType, String algorithmName) throws RealmUnavailableException { return getCredentialAcquireSupport(credentialType, algorithmName, null); }
@Override public SupportLevel getCredentialAcquireSupport(final Class<? extends Credential> credentialType, final String algorithmName, final AlgorithmParameterSpec parameterSpec) throws RealmUnavailableException { return authenticationRealm.getCredentialAcquireSupport(credentialType, algorithmName, parameterSpec); }
/** * Determine whether a credential of the given type and algorithm is definitely obtainable, possibly obtainable (for * some identities), or definitely not obtainable. * * Credential is {@link SupportLevel#SUPPORTED}, if it is supported by all realms of the domain. * Credential is {@link SupportLevel#POSSIBLY_SUPPORTED} if it is supported or possibly supported by at least one realm of the domain. * Otherwise it is {@link SupportLevel#UNSUPPORTED}. * * @param credentialType the exact credential type (must not be {@code null}) * @param algorithmName the algorithm name, or {@code null} if any algorithm is acceptable or the credential type does * not support algorithm names * @param parameterSpec the algorithm parameters to match, or {@code null} if any parameters are acceptable or the credential type * does not support algorithm parameters * @return the level of support for this credential */ public SupportLevel getCredentialAcquireSupport(Class<? extends Credential> credentialType, String algorithmName, AlgorithmParameterSpec parameterSpec) { return getSupportLevel(r -> { try { return r.getCredentialAcquireSupport(credentialType, algorithmName, parameterSpec); } catch (RealmUnavailableException e) { log.trace("Failed to obtain credential acquire support from realm", e); return null; } }); }
/** * @deprecated Transition method; remove before GA. */ default SupportLevel getCredentialAcquireSupport(Class<? extends Credential> credentialType, String algorithmName) throws RealmUnavailableException { return getCredentialAcquireSupport(credentialType, algorithmName, null); }
@Override public SupportLevel getCredentialAcquireSupport(final Class<? extends Credential> credentialType, final String algorithmName, final AlgorithmParameterSpec parameterSpec) throws RealmUnavailableException { return authenticationRealm.getCredentialAcquireSupport(credentialType, algorithmName, parameterSpec); }
/** * @deprecated Transition method; remove before GA. */ default SupportLevel getCredentialAcquireSupport(Class<? extends Credential> credentialType, String algorithmName) throws RealmUnavailableException { return getCredentialAcquireSupport(credentialType, algorithmName, null); }
/** * @deprecated Transition method; remove before GA. */ default SupportLevel getCredentialAcquireSupport(Class<? extends Credential> credentialType, String algorithmName) throws RealmUnavailableException { return getCredentialAcquireSupport(credentialType, algorithmName, null); }
public SupportLevel getCredentialAcquireSupport(Class<? extends Credential> credentialType, String algorithmName, AlgorithmParameterSpec parameterSpec) throws RealmUnavailableException { // TODO: after the Elytron upgrade, the following call should be changed to accept parameterSpec as well return wrapped.getCredentialAcquireSupport(credentialType, algorithmName); }
public SupportLevel getCredentialAcquireSupport(Class<? extends Credential> credentialType, String algorithmName) throws RealmUnavailableException { return wrapped.getCredentialAcquireSupport(credentialType, algorithmName); }
@Override public SupportLevel getCredentialAcquireSupport(final Class<? extends Credential> credentialType, final String algorithmName, final AlgorithmParameterSpec parameterSpec) throws RealmUnavailableException { return authenticationRealm.getCredentialAcquireSupport(credentialType, algorithmName, parameterSpec); }
public SupportLevel getCredentialAcquireSupport(Class<? extends Credential> credentialType, String algorithmName, AlgorithmParameterSpec parameterSpec) throws RealmUnavailableException { // TODO: after the Elytron upgrade, the following call should be changed to accept parameterSpec as well return wrapped.getCredentialAcquireSupport(credentialType, algorithmName); }
public SupportLevel getCredentialAcquireSupport(Class<? extends Credential> credentialType, String algorithmName) throws RealmUnavailableException { return wrapped.getCredentialAcquireSupport(credentialType, algorithmName); }
@Override public SupportLevel getCredentialAcquireSupport(final Class<? extends Credential> credentialType, final String algorithmName, final AlgorithmParameterSpec parameterSpec) throws RealmUnavailableException { return authenticationRealm.getCredentialAcquireSupport(credentialType, algorithmName, parameterSpec); }
/** * Determine whether a credential of the given type and algorithm is definitely obtainable, possibly obtainable (for * some identities), or definitely not obtainable. * * Credential is {@link SupportLevel#SUPPORTED}, if it is supported by all realms of the domain. * Credential is {@link SupportLevel#POSSIBLY_SUPPORTED} if it is supported or possibly supported by at least one realm of the domain. * Otherwise it is {@link SupportLevel#UNSUPPORTED}. * * @param credentialType the exact credential type (must not be {@code null}) * @param algorithmName the algorithm name, or {@code null} if any algorithm is acceptable or the credential type does * not support algorithm names * @param parameterSpec the algorithm parameters to match, or {@code null} if any parameters are acceptable or the credential type * does not support algorithm parameters * @return the level of support for this credential */ public SupportLevel getCredentialAcquireSupport(Class<? extends Credential> credentialType, String algorithmName, AlgorithmParameterSpec parameterSpec) { return getSupportLevel(r -> { try { return r.getCredentialAcquireSupport(credentialType, algorithmName, parameterSpec); } catch (RealmUnavailableException e) { log.trace("Failed to obtain credential acquire support from realm", e); return null; } }); }
/** * Determine whether a credential of the given type and algorithm is definitely obtainable, possibly obtainable (for * some identities), or definitely not obtainable. * * Credential is {@link SupportLevel#SUPPORTED}, if it is supported by all realms of the domain. * Credential is {@link SupportLevel#POSSIBLY_SUPPORTED} if it is supported or possibly supported by at least one realm of the domain. * Otherwise it is {@link SupportLevel#UNSUPPORTED}. * * @param credentialType the exact credential type (must not be {@code null}) * @param algorithmName the algorithm name, or {@code null} if any algorithm is acceptable or the credential type does * not support algorithm names * @param parameterSpec the algorithm parameters to match, or {@code null} if any parameters are acceptable or the credential type * does not support algorithm parameters * @return the level of support for this credential */ public SupportLevel getCredentialAcquireSupport(Class<? extends Credential> credentialType, String algorithmName, AlgorithmParameterSpec parameterSpec) { return getSupportLevel(r -> { try { return r.getCredentialAcquireSupport(credentialType, algorithmName, parameterSpec); } catch (RealmUnavailableException e) { log.trace("Failed to obtain credential acquire support from realm", e); return null; } }); }
/** * Determine whether a credential of the given type and algorithm is definitely obtainable, possibly obtainable (for * some identities), or definitely not obtainable. * * Credential is {@link SupportLevel#SUPPORTED}, if it is supported by all realms of the domain. * Credential is {@link SupportLevel#POSSIBLY_SUPPORTED} if it is supported or possibly supported by at least one realm of the domain. * Otherwise it is {@link SupportLevel#UNSUPPORTED}. * * @param credentialType the exact credential type (must not be {@code null}) * @param algorithmName the algorithm name, or {@code null} if any algorithm is acceptable or the credential type does * not support algorithm names * @param parameterSpec the algorithm parameters to match, or {@code null} if any parameters are acceptable or the credential type * does not support algorithm parameters * @return the level of support for this credential */ public SupportLevel getCredentialAcquireSupport(Class<? extends Credential> credentialType, String algorithmName, AlgorithmParameterSpec parameterSpec) { return getSupportLevel(r -> { try { return r.getCredentialAcquireSupport(credentialType, algorithmName, parameterSpec); } catch (RealmUnavailableException e) { log.trace("Failed to obtain credential acquire support from realm", e); return null; } }); }