Class ConsentAttributes
Object
se.curity.identityserver.sdk.attribute.Attributes
se.curity.identityserver.sdk.attribute.ConsentAttributes
- All Implemented Interfaces:
Iterable<Attribute>,AttributeContainer<Attributes>,SerializableAsMap
Subtype of Attributes that contains the consent that the user submitted.
- Since:
- 4.1.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic ConsentAttributesfromAttributes(Attributes other) Create a new ConsentAttributes instance from the provided Attributes, that actually represents an Attributes-instance with the correct structure.static ConsentAttributesof(String clientId, AuthenticationAttributes authenticationAttributes, Collection<String> consentedScopes, Collection<String> consentedClaims) Methods inherited from class se.curity.identityserver.sdk.attribute.Attributes
append, append, asMap, contains, empty, equals, fromMap, fromMap, get, getAll, getMandatoryAttribute, getMandatoryValue, getValuesOfType, hashCode, isEmpty, iterator, keys, of, of, of, of, of, of, of, removeAttributes, retainAttributes, size, stream, toMap, toString, with, withMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface se.curity.identityserver.sdk.attribute.AttributeContainer
contains, getOptionalValue, getOptionalValue, removeAttribute, retainAttributeMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
of
public static ConsentAttributes of(String clientId, AuthenticationAttributes authenticationAttributes, Collection<String> consentedScopes, Collection<String> consentedClaims) -
fromAttributes
Create a new ConsentAttributes instance from the provided Attributes, that actually represents an Attributes-instance with the correct structure.This method should be called when an Attributes-instance is deserialized and needs to be upcast to ConsentAttributes.
- Parameters:
other- Attributes-instance that has the correct model to be upcast as ConsentAttributes.- Returns:
- the ConsentAttributes instance that is represented by the provided Attributes.
- Throws:
AttributeValueException- when provided attributes did not contain required subject- and/or context- attributes.
-
getScopeNames
-
getClaimNames
-
getAuthenticationAttributes
-
getClientId
-