Class UserConsentedOAuthEvent
Object
se.curity.identityserver.sdk.data.events.OAuthEvent
se.curity.identityserver.sdk.data.events.UserConsentedOAuthEvent
- All Implemented Interfaces:
SerializableAsMap,Event
An event that represents interactive user consent.
- Since:
- 3.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionUserConsentedOAuthEvent(ClientIdentifier requestingClientIdentifier, String requestingSubject, Collection<String> consentedScopes, Collection<String> consentedClaims, Collection<String> requestedScopes, Collection<String> requestedClaims, String profileId) Creates a new event representing user consent. -
Method Summary
Methods inherited from class se.curity.identityserver.sdk.data.events.OAuthEvent
getProfileId, getRequestingClientName, toString
-
Constructor Details
-
UserConsentedOAuthEvent
public UserConsentedOAuthEvent(ClientIdentifier requestingClientIdentifier, String requestingSubject, Collection<String> consentedScopes, Collection<String> consentedClaims, Collection<String> requestedScopes, Collection<String> requestedClaims, String profileId) Creates a new event representing user consent.- Parameters:
requestingClientIdentifier- the requesting client identifierrequestingSubject- the requesting subjectconsentedClaims- the claims that were consented to or an empty set if none or only the default scope wasrequestedClaims- the claims that were requested by the clientrequestedScopes- the scopes that were requested by the clientprofileId- the ID of the profile from which this event originated
-
-
Method Details
-
getRequestingClientId
Description copied from class:OAuthEventReturns the ID of the client that made the request causing this event to be posted.- Overrides:
getRequestingClientIdin classOAuthEvent- Returns:
- the requesting client's ID
-
getRequestingSubject
Description copied from class:OAuthEventReturns subject authenticated for making the request causing this event to be posted.- Overrides:
getRequestingSubjectin classOAuthEvent- Returns:
- the requesting subject
-
getConsentedClaims
Gets the claims that were consented to.If the set is empty, then only the default claim (i.e., "" or the default scope) was consented to; otherwise, the set contains all the claims that were consented to.
- Returns:
- the claims that were consented to.
-
asMap
Description copied from interface:EventGet a map representation of thisEvent.- Specified by:
asMapin interfaceEvent- Specified by:
asMapin interfaceSerializableAsMap- Overrides:
asMapin classOAuthEvent- Returns:
- a
Maprepresentation of thisEvent. This can be used to serialize events. Sub-types are encouraged to override this method, callingsuper.asMap()and enriching the returned mutableMapwith the more specific information added by the sub-type.
-
getRequestedClaims
-
getRequestedScopes
-
getConsentedScopes
-