public <T> T getAttributeValue(final String key, final Class<T> clazz) {
        return clazz.cast(attributes.get(key));
    }
Gets attribute value.

@param <T>   the type parameter
@param key   the key
@param clazz the clazz
@return the attribute value
api/cas-server-core-api-webflow/src/main/java/org/apereo/cas/web/flow/SingleSignOnParticipationRequest.java