public boolean containsAuthenticationAttribute(final String name) {
        CommonHelper.assertNotNull("name", name);
        return this.authenticationAttributes.containsKey(name);
    }
Check to see if profile contains attribute name.

@param name the name
@return true/false
pac4j-core/src/main/java/org/pac4j/core/profile/BasicUserProfile.java