Set<String> binaryAttributes = new HashSet<>(); for (CredentialLoader loader : credentialLoaders) { loader.addRequiredIdentityAttributes(attributes); loader.addBinaryIdentityAttributes(binaryAttributes); if (loader.getCredentialAcquireSupport(credentialType, algorithmName, parameterSpec).mayBeSupported()) { IdentityCredentialLoader icl = loader.forIdentity(identity.getDirContext(), identity.getDistinguishedName(), identity.getEntry().getAttributes());
@Override public SupportLevel getCredentialAcquireSupport(final Class<? extends Credential> credentialType, final String algorithmName, final AlgorithmParameterSpec parameterSpec) throws RealmUnavailableException { Assert.checkNotNullParam("credentialType", credentialType); SupportLevel response = SupportLevel.UNSUPPORTED; for (CredentialLoader loader : credentialLoaders) { SupportLevel support = loader.getCredentialAcquireSupport(credentialType, algorithmName, parameterSpec); if (support.isDefinitelySupported()) { // One claiming it is definitely supported is enough! return support; } if (response.compareTo(support) < 0) { response = support; } } return response; }
@Override public SupportLevel getCredentialAcquireSupport(final Class<? extends Credential> credentialType, final String algorithmName, final AlgorithmParameterSpec parameterSpec) throws RealmUnavailableException { Assert.checkNotNullParam("credentialType", credentialType); SupportLevel response = SupportLevel.UNSUPPORTED; for (CredentialLoader loader : credentialLoaders) { SupportLevel support = loader.getCredentialAcquireSupport(credentialType, algorithmName, parameterSpec); if (support.isDefinitelySupported()) { // One claiming it is definitely supported is enough! return support; } if (response.compareTo(support) < 0) { response = support; } } return response; }
Set<String> binaryAttributes = new HashSet<>(); for (CredentialLoader loader : credentialLoaders) { loader.addRequiredIdentityAttributes(attributes); loader.addBinaryIdentityAttributes(binaryAttributes); if (loader.getCredentialAcquireSupport(credentialType, algorithmName, parameterSpec).mayBeSupported()) { IdentityCredentialLoader icl = loader.forIdentity(identity.getDirContext(), identity.getDistinguishedName(), identity.getEntry().getAttributes());
@Override public SupportLevel getCredentialAcquireSupport(final Class<? extends Credential> credentialType, final String algorithmName, final AlgorithmParameterSpec parameterSpec) throws RealmUnavailableException { Assert.checkNotNullParam("credentialType", credentialType); SupportLevel response = SupportLevel.UNSUPPORTED; for (CredentialLoader loader : credentialLoaders) { SupportLevel support = loader.getCredentialAcquireSupport(credentialType, algorithmName, parameterSpec); if (support.isDefinitelySupported()) { // One claiming it is definitely supported is enough! return support; } if (response.compareTo(support) < 0) { response = support; } } return response; }
Set<String> binaryAttributes = new HashSet<>(); for (CredentialLoader loader : credentialLoaders) { loader.addRequiredIdentityAttributes(attributes); loader.addBinaryIdentityAttributes(binaryAttributes); if (loader.getCredentialAcquireSupport(credentialType, algorithmName, parameterSpec).mayBeSupported()) { IdentityCredentialLoader icl = loader.forIdentity(identity.getDirContext(), identity.getDistinguishedName(), identity.getEntry().getAttributes());
@Override public SupportLevel getCredentialAcquireSupport(final Class<? extends Credential> credentialType, final String algorithmName, final AlgorithmParameterSpec parameterSpec) throws RealmUnavailableException { Assert.checkNotNullParam("credentialType", credentialType); SupportLevel response = SupportLevel.UNSUPPORTED; for (CredentialLoader loader : credentialLoaders) { SupportLevel support = loader.getCredentialAcquireSupport(credentialType, algorithmName, parameterSpec); if (support.isDefinitelySupported()) { // One claiming it is definitely supported is enough! return support; } if (response.compareTo(support) < 0) { response = support; } } return response; }
Set<String> binaryAttributes = new HashSet<>(); for (CredentialLoader loader : credentialLoaders) { loader.addRequiredIdentityAttributes(attributes); loader.addBinaryIdentityAttributes(binaryAttributes); if (loader.getCredentialAcquireSupport(credentialType, algorithmName, parameterSpec).mayBeSupported()) { IdentityCredentialLoader icl = loader.forIdentity(identity.getDirContext(), identity.getDistinguishedName(), identity.getEntry().getAttributes());
Set<String> binaryAttributes = new HashSet<>(); for (CredentialLoader loader : credentialLoaders) { loader.addRequiredIdentityAttributes(attributes); loader.addBinaryIdentityAttributes(binaryAttributes); if (loader.getCredentialAcquireSupport(credentialType, algorithmName, parameterSpec).mayBeSupported()) { IdentityCredentialLoader icl = loader.forIdentity(identity.getDirContext(), identity.getDistinguishedName(), identity.getEntry().getAttributes());
Set<String> binaryAttributes = new HashSet<>(); for (CredentialLoader loader : credentialLoaders) { loader.addRequiredIdentityAttributes(attributes); loader.addBinaryIdentityAttributes(binaryAttributes); if (loader.getCredentialAcquireSupport(credentialType, algorithmName, parameterSpec).mayBeSupported()) { IdentityCredentialLoader icl = loader.forIdentity(identity.getDirContext(), identity.getDistinguishedName(), identity.getEntry().getAttributes());
Set<String> binaryAttributes = new HashSet<>(); for (CredentialLoader loader : credentialLoaders) { loader.addRequiredIdentityAttributes(attributes); loader.addBinaryIdentityAttributes(binaryAttributes); if (loader.getCredentialAcquireSupport(credentialType, algorithmName, parameterSpec).mayBeSupported()) { IdentityCredentialLoader icl = loader.forIdentity(identity.getDirContext(), identity.getDistinguishedName(), identity.getEntry().getAttributes());
Set<String> binaryAttributes = new HashSet<>(); for (CredentialLoader loader : credentialLoaders) { loader.addRequiredIdentityAttributes(attributes); loader.addBinaryIdentityAttributes(binaryAttributes); if (loader.getCredentialAcquireSupport(credentialType, algorithmName, parameterSpec).mayBeSupported()) { IdentityCredentialLoader icl = loader.forIdentity(identity.getDirContext(), identity.getDistinguishedName(), identity.getEntry().getAttributes());