public <T> T getAuthenticationAttribute(final String name, final Class<T> clazz)
    {
        val attribute = getAuthenticationAttribute(name);
        return getAttributeByType(name, clazz, attribute);
    }
Return authentication attribute with name

@param name Name of authentication attribute
@param clazz The class of the authentication attribute
@param <T> The type of the authentication attribute
@return the named attribute
pac4j-core/src/main/java/org/pac4j/core/profile/BasicUserProfile.java