/** * Locate matching attribute value boolean. * * @param attrName the attr name * @param attrValue the attr value * @param attributes the attributes * @return true/false */ protected boolean locateMatchingAttributeValue(final String attrName, final String attrValue, final Map<String, Object> attributes) { return locateMatchingAttributeValue(attrName, attrValue, attributes, true); }
/** * Skip bypass and support event based on principal attributes. * * @param bypass the bypass properties * @param principal the principal * @return the boolean */ protected boolean locateMatchingAttributeBasedOnPrincipalAttributes( final MultifactorAuthenticationProviderBypassProperties bypass, final Principal principal) { return locateMatchingAttributeValue(bypass.getPrincipalAttributeName(), bypass.getPrincipalAttributeValue(), principal.getAttributes()); }
/** * Skip bypass and support event based on authentication attributes. * * @param bypass the bypass settings for the provider. * @param authn the authn * @return the boolean */ protected boolean locateMatchingAttributeBasedOnAuthenticationAttributes( final MultifactorAuthenticationProviderBypassProperties bypass, final Authentication authn) { return locateMatchingAttributeValue(bypass.getAuthenticationAttributeName(), bypass.getAuthenticationAttributeValue(), authn.getAttributes()); }
val bypassByAuthnMethod = locateMatchingAttributeValue( AuthenticationManager.AUTHENTICATION_METHOD_ATTRIBUTE, bypassProperties.getAuthenticationMethodName(), val bypassByHandlerName = locateMatchingAttributeValue( AuthenticationHandler.SUCCESSFUL_AUTHENTICATION_HANDLERS, bypassProperties.getAuthenticationHandlerName(),