protected static boolean locateMatchingCredentialType(final Authentication authentication, final String credentialClassType) {
        return StringUtils.isNotBlank(credentialClassType) && authentication.getCredentials()
            .stream()
            .anyMatch(e -> Objects.nonNull(e.getCredentialMetadata())
                           && e.getCredentialMetadata().getCredentialClass().getName().matches(credentialClassType));
    }
Locate matching credential type boolean.

@param authentication      the authentication
@param credentialClassType the credential class type
@return true/false
core/cas-server-core-authentication-mfa-api/src/main/java/org/apereo/cas/authentication/bypass/CredentialMultifactorAuthenticationProviderBypassEvaluator.java