/** * 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}) * @return the level of support for this credential */ public SupportLevel getCredentialAcquireSupport(Class<? extends Credential> credentialType) { return getCredentialAcquireSupport(credentialType, 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 * @return the level of support for this credential */ public SupportLevel getCredentialAcquireSupport(Class<? extends Credential> credentialType, String algorithmName) { return getCredentialAcquireSupport(credentialType, algorithmName, null); }
if (AlgorithmCredential.class.isAssignableFrom(credentialType)) { for (String algorithmName : getSupportedCredentialAlgorithmNames(credentialType.asSubclass(AlgorithmCredential.class), mechName)) { if ("*".equals(algorithmName) && securityDomain.getCredentialAcquireSupport(credentialType).mayBeSupported() || securityDomain.getCredentialAcquireSupport(credentialType, algorithmName).mayBeSupported()) { names.add(mechName); continue top; if (securityDomain.getCredentialAcquireSupport(credentialType).mayBeSupported()) { names.add(mechName); continue top;
/** * 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}) * @return the level of support for this credential */ public SupportLevel getCredentialAcquireSupport(Class<? extends Credential> credentialType) { return getCredentialAcquireSupport(credentialType, 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}) * @return the level of support for this credential */ public SupportLevel getCredentialAcquireSupport(Class<? extends Credential> credentialType) { return getCredentialAcquireSupport(credentialType, 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}) * @return the level of support for this credential */ public SupportLevel getCredentialAcquireSupport(Class<? extends Credential> credentialType) { return getCredentialAcquireSupport(credentialType, 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 * @return the level of support for this credential */ public SupportLevel getCredentialAcquireSupport(Class<? extends Credential> credentialType, String algorithmName) { return getCredentialAcquireSupport(credentialType, algorithmName, 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 * @return the level of support for this credential */ public SupportLevel getCredentialAcquireSupport(Class<? extends Credential> credentialType, String algorithmName) { return getCredentialAcquireSupport(credentialType, algorithmName, 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 * @return the level of support for this credential */ public SupportLevel getCredentialAcquireSupport(Class<? extends Credential> credentialType, String algorithmName) { return getCredentialAcquireSupport(credentialType, algorithmName, null); }
if (AlgorithmCredential.class.isAssignableFrom(credentialType)) { for (String algorithmName : getSupportedCredentialAlgorithmNames(credentialType.asSubclass(AlgorithmCredential.class), mechName)) { if ("*".equals(algorithmName) && securityDomain.getCredentialAcquireSupport(credentialType).mayBeSupported() || securityDomain.getCredentialAcquireSupport(credentialType, algorithmName).mayBeSupported()) { names.add(mechName); continue top; if (securityDomain.getCredentialAcquireSupport(credentialType).mayBeSupported()) { names.add(mechName); continue top;
if (AlgorithmCredential.class.isAssignableFrom(credentialType)) { for (String algorithmName : getSupportedCredentialAlgorithmNames(credentialType.asSubclass(AlgorithmCredential.class), mechName)) { if ("*".equals(algorithmName) && securityDomain.getCredentialAcquireSupport(credentialType).mayBeSupported() || securityDomain.getCredentialAcquireSupport(credentialType, algorithmName).mayBeSupported()) { names.add(mechName); continue top; if (securityDomain.getCredentialAcquireSupport(credentialType).mayBeSupported()) { names.add(mechName); continue top;
if (AlgorithmCredential.class.isAssignableFrom(credentialType)) { for (String algorithmName : getSupportedCredentialAlgorithmNames(credentialType.asSubclass(AlgorithmCredential.class), mechName)) { if ("*".equals(algorithmName) && securityDomain.getCredentialAcquireSupport(credentialType).mayBeSupported() || securityDomain.getCredentialAcquireSupport(credentialType, algorithmName).mayBeSupported()) { names.add(mechName); continue top; if (securityDomain.getCredentialAcquireSupport(credentialType).mayBeSupported()) { names.add(mechName); continue top;