/** * Determine whether a given type of evidence is definitely verifiable, possibly verifiable (for some identities), * or definitely not verifiable. * * @param evidenceType the type of evidence to be verified (must not be {@code null}) * @param algorithmName the algorithm name, or {@code null} if any algorithm is acceptable or the evidence type does * not support algorithm names * @return the level of support for this evidence type */ default SupportLevel getEvidenceVerifySupport(Class<? extends Evidence> evidenceType, String algorithmName) { if (PasswordGuessEvidence.class.isAssignableFrom(evidenceType)) { return getCredentialAcquireSupport(PasswordCredential.class, null, null); } return SupportLevel.UNSUPPORTED; }
@Override public SupportLevel getEvidenceVerifySupport(final Class<? extends Evidence> evidenceType, final String algorithmName) throws RealmUnavailableException { Assert.checkNotNullParam("evidenceType", evidenceType); SupportLevel support = SupportLevel.UNSUPPORTED; for (QueryConfiguration configuration : queryConfiguration) { for (KeyMapper keyMapper : configuration.getColumnMappers(KeyMapper.class)) { final SupportLevel mapperSupport = keyMapper.getEvidenceVerifySupport(evidenceType, algorithmName); if (support.compareTo(mapperSupport) < 0) { support = mapperSupport; } } } return support; }
Credential credential = keyMapper.map(resultSet, providers); if (credential != null) { credentials = credentials.withCredential(credential);
@Override public SupportLevel getCredentialAcquireSupport(final Class<? extends Credential> credentialType, final String algorithmName, final AlgorithmParameterSpec parameterSpec) throws RealmUnavailableException { Assert.checkNotNullParam("credentialType", credentialType); SupportLevel support = SupportLevel.UNSUPPORTED; for (QueryConfiguration configuration : queryConfiguration) { for (KeyMapper keyMapper : configuration.getColumnMappers(KeyMapper.class)) { final SupportLevel mapperSupport = keyMapper.getCredentialAcquireSupport(credentialType, algorithmName, parameterSpec); if (support.compareTo(mapperSupport) < 0) { support = mapperSupport; } } } return support; }
@Override public SupportLevel getEvidenceVerifySupport(final Class<? extends Evidence> evidenceType, final String algorithmName) throws RealmUnavailableException { Assert.checkNotNullParam("evidenceType", evidenceType); SupportLevel support = SupportLevel.UNSUPPORTED; for (QueryConfiguration configuration : queryConfiguration) { for (KeyMapper keyMapper : configuration.getColumnMappers(KeyMapper.class)) { final SupportLevel mapperSupport = keyMapper.getEvidenceVerifySupport(evidenceType, algorithmName); if (support.compareTo(mapperSupport) < 0) { support = mapperSupport; } } } return support; }
Credential credential = keyMapper.map(resultSet, providers); if (credential != null) { credentials = credentials.withCredential(credential);
/** * Determine whether a given type of evidence is definitely verifiable, possibly verifiable (for some identities), * or definitely not verifiable. * * @param evidenceType the type of evidence to be verified (must not be {@code null}) * @param algorithmName the algorithm name, or {@code null} if any algorithm is acceptable or the evidence type does * not support algorithm names * @return the level of support for this evidence type */ default SupportLevel getEvidenceVerifySupport(Class<? extends Evidence> evidenceType, String algorithmName) { if (PasswordGuessEvidence.class.isAssignableFrom(evidenceType)) { return getCredentialAcquireSupport(PasswordCredential.class, null, null); } return SupportLevel.UNSUPPORTED; }
@Override public SupportLevel getEvidenceVerifySupport(final Class<? extends Evidence> evidenceType, final String algorithmName) throws RealmUnavailableException { Assert.checkNotNullParam("evidenceType", evidenceType); SupportLevel support = SupportLevel.UNSUPPORTED; for (QueryConfiguration configuration : queryConfiguration) { for (KeyMapper keyMapper : configuration.getColumnMappers(KeyMapper.class)) { final SupportLevel mapperSupport = keyMapper.getEvidenceVerifySupport(evidenceType, algorithmName); if (support.compareTo(mapperSupport) < 0) { support = mapperSupport; } } } return support; }
Credential credential = keyMapper.map(resultSet, providers); if (credential != null) { credentials = credentials.withCredential(credential);
/** * Determine whether a given type of evidence is definitely verifiable, possibly verifiable (for some identities), * or definitely not verifiable. * * @param evidenceType the type of evidence to be verified (must not be {@code null}) * @param algorithmName the algorithm name, or {@code null} if any algorithm is acceptable or the evidence type does * not support algorithm names * @return the level of support for this evidence type */ default SupportLevel getEvidenceVerifySupport(Class<? extends Evidence> evidenceType, String algorithmName) { if (PasswordGuessEvidence.class.isAssignableFrom(evidenceType)) { return getCredentialAcquireSupport(PasswordCredential.class, null, null); } return SupportLevel.UNSUPPORTED; }
@Override public SupportLevel getEvidenceVerifySupport(final Class<? extends Evidence> evidenceType, final String algorithmName) throws RealmUnavailableException { Assert.checkNotNullParam("evidenceType", evidenceType); SupportLevel support = SupportLevel.UNSUPPORTED; for (QueryConfiguration configuration : queryConfiguration) { for (KeyMapper keyMapper : configuration.getColumnMappers(KeyMapper.class)) { final SupportLevel mapperSupport = keyMapper.getEvidenceVerifySupport(evidenceType, algorithmName); if (support.compareTo(mapperSupport) < 0) { support = mapperSupport; } } } return support; }
Credential credential = keyMapper.map(resultSet, providers); if (credential != null) { credentials = credentials.withCredential(credential);
/** * Determine whether a given type of evidence is definitely verifiable, possibly verifiable (for some identities), * or definitely not verifiable. * * @param evidenceType the type of evidence to be verified (must not be {@code null}) * @param algorithmName the algorithm name, or {@code null} if any algorithm is acceptable or the evidence type does * not support algorithm names * @return the level of support for this evidence type */ default SupportLevel getEvidenceVerifySupport(Class<? extends Evidence> evidenceType, String algorithmName) { if (PasswordGuessEvidence.class.isAssignableFrom(evidenceType)) { return getCredentialAcquireSupport(PasswordCredential.class, null, null); } return SupportLevel.UNSUPPORTED; }
@Override public SupportLevel getCredentialAcquireSupport(final Class<? extends Credential> credentialType, final String algorithmName, final AlgorithmParameterSpec parameterSpec) throws RealmUnavailableException { Assert.checkNotNullParam("credentialType", credentialType); SupportLevel support = SupportLevel.UNSUPPORTED; for (QueryConfiguration configuration : queryConfiguration) { for (KeyMapper keyMapper : configuration.getColumnMappers(KeyMapper.class)) { final SupportLevel mapperSupport = keyMapper.getCredentialAcquireSupport(credentialType, algorithmName, parameterSpec); if (support.compareTo(mapperSupport) < 0) { support = mapperSupport; } } } return support; }
@Override public SupportLevel getCredentialAcquireSupport(final Class<? extends Credential> credentialType, final String algorithmName, final AlgorithmParameterSpec parameterSpec) throws RealmUnavailableException { Assert.checkNotNullParam("credentialType", credentialType); SupportLevel support = SupportLevel.UNSUPPORTED; for (QueryConfiguration configuration : queryConfiguration) { for (KeyMapper keyMapper : configuration.getColumnMappers(KeyMapper.class)) { final SupportLevel mapperSupport = keyMapper.getCredentialAcquireSupport(credentialType, algorithmName, parameterSpec); if (support.compareTo(mapperSupport) < 0) { support = mapperSupport; } } } return support; }
@Override public SupportLevel getCredentialAcquireSupport(final Class<? extends Credential> credentialType, final String algorithmName, final AlgorithmParameterSpec parameterSpec) throws RealmUnavailableException { Assert.checkNotNullParam("credentialType", credentialType); SupportLevel support = SupportLevel.UNSUPPORTED; for (QueryConfiguration configuration : queryConfiguration) { for (KeyMapper keyMapper : configuration.getColumnMappers(KeyMapper.class)) { final SupportLevel mapperSupport = keyMapper.getCredentialAcquireSupport(credentialType, algorithmName, parameterSpec); if (support.compareTo(mapperSupport) < 0) { support = mapperSupport; } } } return support; }