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 subjectconsentedScopes
- scopes consented by userconsentedClaims
- the claims that were consented to or an empty set if none or only the default scope wasrequestedScopes
- the scopes that were requested by the clientrequestedClaims
- the claims that were requested by the clientprofileId
- the ID of the profile from which this event originated
-
-
Method Details
-
getRequestingClientId
Description copied from class:OAuthEvent
Returns the ID of the client that made the request causing this event to be posted.- Overrides:
getRequestingClientId
in classOAuthEvent
- Returns:
- the requesting client's ID
-
getRequestingSubject
Description copied from class:OAuthEvent
Returns subject authenticated for making the request causing this event to be posted.- Overrides:
getRequestingSubject
in 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:Event
Get a map representation of thisEvent
.- Specified by:
asMap
in interfaceEvent
- Specified by:
asMap
in interfaceSerializableAsMap
- Overrides:
asMap
in classOAuthEvent
- Returns:
- a
Map
representation of thisEvent
. This can be used to serialize events. Sub-types are encouraged to override this method, callingsuper.asMap()
and enriching the returned mutableMap
with the more specific information added by the sub-type.
-
getRequestedClaims
-
getRequestedScopes
-
getConsentedScopes
-