Class OAuthEvent
Object
se.curity.identityserver.sdk.data.events.OAuthEvent
- All Implemented Interfaces:
SerializableAsMap,Event
- Direct Known Subclasses:
AuthorizationCodeOAuthEvent,ConsentorCompleteOAuthEvent,DelegationOauthEvent,DeviceCodeOAuthEvent,ProblemOAuthEvent,RegisteredDcrClientOAuthEvent,TokenOAuthEvent,UserConsentedOAuthEvent,UserInfoOAuthEvent
Common base class for OAuth events.
- Since:
- 2.3.0
-
Constructor Summary
ConstructorsConstructorDescriptionOAuthEvent(String profileId) Constructor forOAuthEventwith profile ID.OAuthEvent(@Nullable ClientIdentifier requestingClientIdentifier, @Nullable String requestingSubject, String profileId) Constructor forOAuthEvent. -
Method Summary
Modifier and TypeMethodDescriptionasMap()Get a map representation of thisEvent.Get the ID of the profile from which this event originatedReturns the ID of the client that made the request causing this event to be posted.Returns the name of the client that made the request causing this event to be posted.Returns subject authenticated for making the request causing this event to be posted.protected static voidtoString()
-
Constructor Details
-
OAuthEvent
Constructor forOAuthEventwith profile ID.- Parameters:
profileId- the ID of the profile from which this event originated
-
OAuthEvent
public OAuthEvent(@Nullable ClientIdentifier requestingClientIdentifier, @Nullable String requestingSubject, String profileId) Constructor forOAuthEvent.- Parameters:
requestingClientIdentifier- the requesting client identifierrequestingSubject- the requesting subjectprofileId- the ID of the profile from which this event originated- Since:
- 5.1.0
-
-
Method Details
-
getRequestingClientId
Returns the ID of the client that made the request causing this event to be posted.- Returns:
- the requesting client's ID
-
getRequestingClientName
Returns the name of the client that made the request causing this event to be posted.- Returns:
- the requesting client's name
-
getRequestingSubject
Returns subject authenticated for making the request causing this event to be posted.- Returns:
- the requesting subject
-
getProfileId
Get the ID of the profile from which this event originated- Returns:
- profile ID
- Since:
- 7.0.0
-
asMap
Description copied from interface:EventGet a map representation of thisEvent.- Specified by:
asMapin interfaceEvent- Specified by:
asMapin interfaceSerializableAsMap- 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.
-
putIfNotNull
-
toString
-