Class RegisteredDcrClientOAuthEvent
Object
se.curity.identityserver.sdk.data.events.OAuthEvent
se.curity.identityserver.sdk.data.events.RegisteredDcrClientOAuthEvent
- All Implemented Interfaces:
SerializableAsMap,AuditableEvent,Event
Event posted when an OAuth client is dynamically registered (DCR).
- Since:
- 2.3.0
-
Constructor Summary
ConstructorsConstructorDescriptionRegisteredDcrClientOAuthEvent(boolean templatized, String clientId, @Nullable String instanceOfClient, @Nullable String initialClient, @Nullable String authenticatedUser, Collection<String> scope, Collection<String> redirectUris, Collection<String> grantTypes, Collection<String> capabilities, @Nullable String clientName, @Nullable String clientUri, @Nullable String logoUri, @Nullable String policyUri, @Nullable String tosUri, OptionalLong defaultMaxAge, Collection<String> allowedOrigins, boolean requiresConsent, OptionalLong refreshTokenTtl, long accessTokenTtl, OptionalLong idTokenTtl, @Nullable String applicationUrl, boolean requireProofKey, Collection<String> disallowedProofKeyChallengeMethods, Collection<String> authenticators, Collection<String> backchannelAuthenticators, Collection<String> authenticatorFilters, String profileId) -
Method Summary
Modifier and TypeMethodDescriptionasMap()Get a map representation of thisEvent.Returns the TTL of access tokens issued to the registered client.Returns the allowed origins for the registered client.Returns the application URL of the registered client.Get allAuditDataassociated with this auditable event.Returns the subject of the initial access token.Returns the subject of the user the initial access token was issued to.Returns the list of authenticator filters for the registered client.Returns the list of allowed authenticators for the registered client.Returns the list of allowed backchannel authenticators for the registered client.Returns the capabilities of the registered client.Returns the ID of the registered client.Returns the human-readable name of the registered client.URL string of a web page providing information about the client that the authorization server should display to the end-user.Get the default max age for authentication freshness.Returns the list of disallowed proof key challenge methods for the registered client.Returns the allowed grant types the registered client.Returns the TTL of ID tokens issued to the registered client.Returns the ID of the client the initial access token was issued to.Returns the ID of the client used as a template for the registered client.URL string that points to a human-readable logo that the authorization server should display to the end-user.URL string that points to a human-readable privacy policy document that the authorization server should display to the end-user.Returns the redirect URIs of the registered client.Returns the TTL of refresh tokens issued to the registered client.booleanReturns whether the registered client requires a code flow proof key.booleanReturns whether the registered client requires consent.getScope()Returns the allowed scope of the registered client.URL string that points to a human-readable Terms of Service document that the authorization server should display to the end-user.booleanReturns whether the registered client was based on a template client.Methods inherited from class se.curity.identityserver.sdk.data.events.OAuthEvent
getProfileId, getRequestingClientId, getRequestingClientName, getRequestingSubject, toString
-
Constructor Details
-
RegisteredDcrClientOAuthEvent
public RegisteredDcrClientOAuthEvent(boolean templatized, String clientId, @Nullable String instanceOfClient, @Nullable String initialClient, @Nullable String authenticatedUser, Collection<String> scope, Collection<String> redirectUris, Collection<String> grantTypes, Collection<String> capabilities, @Nullable String clientName, @Nullable String clientUri, @Nullable String logoUri, @Nullable String policyUri, @Nullable String tosUri, OptionalLong defaultMaxAge, Collection<String> allowedOrigins, boolean requiresConsent, OptionalLong refreshTokenTtl, long accessTokenTtl, OptionalLong idTokenTtl, @Nullable String applicationUrl, boolean requireProofKey, Collection<String> disallowedProofKeyChallengeMethods, Collection<String> authenticators, Collection<String> backchannelAuthenticators, Collection<String> authenticatorFilters, String profileId)
-
-
Method Details
-
isTemplatized
public boolean isTemplatized()Returns whether the registered client was based on a template client.- Returns:
trueif the the new client was templatized;falseotherwise
-
getClientId
Returns the ID of the registered client.- Returns:
- the registered client's ID
-
getInstanceOfClient
Returns the ID of the client used as a template for the registered client.- Returns:
- the template client's ID
-
getInitialClient
Returns the ID of the client the initial access token was issued to.- Returns:
- the initial client's ID
-
getAuthenticatedUser
Returns the subject of the user the initial access token was issued to.- Returns:
- the authenticated user
-
getAuthenticatedSubject
Returns the subject of the initial access token.- Returns:
- the authenticated subject
-
getScope
Returns the allowed scope of the registered client.- Returns:
- the registered client's scope
-
getRedirectUris
Returns the redirect URIs of the registered client.- Returns:
- the registered client's redirect URIs
-
getGrantTypes
Returns the allowed grant types the registered client.- Returns:
- the registered client's grant types
-
getCapabilities
Returns the capabilities of the registered client.- Returns:
- the registered client's capabilities
-
getClientName
Returns the human-readable name of the registered client.- Returns:
- the registered client's name
-
getClientUri
URL string of a web page providing information about the client that the authorization server should display to the end-user.- Returns:
- client web page URL as a String
-
getLogoUri
URL string that points to a human-readable logo that the authorization server should display to the end-user.- Returns:
- logo URL as a String
-
getPolicyUri
URL string that points to a human-readable privacy policy document that the authorization server should display to the end-user.- Returns:
- privacy policy URL as a String
-
getTosUri
URL string that points to a human-readable Terms of Service document that the authorization server should display to the end-user.- Returns:
- Terms of Service URL as a String
-
getDefaultMaxAge
Get the default max age for authentication freshness.- Returns:
- default max age for authentication freshness
-
getAllowedOrigins
Returns the allowed origins for the registered client.- Returns:
- the registered client's allowed origins
-
getRequiresConsent
public boolean getRequiresConsent()Returns whether the registered client requires consent.- Returns:
trueif the registered client requires consent;falseotherwise
-
getRefreshTokenTtl
Returns the TTL of refresh tokens issued to the registered client.- Returns:
- the registered client's refresh token TTL
-
getAccessTokenTtl
Returns the TTL of access tokens issued to the registered client.- Returns:
- the registered client's access token TTL
-
getIdTokenTtl
Returns the TTL of ID tokens issued to the registered client.- Returns:
- the registered client's ID token TTL
-
getApplicationUrl
Returns the application URL of the registered client.- Returns:
- the registered client's application URL
-
getRequireProofKey
public boolean getRequireProofKey()Returns whether the registered client requires a code flow proof key.- Returns:
trueif the registered client requires a proof key;falseotherwise
-
getDisallowedProofKeyChallengeMethods
Returns the list of disallowed proof key challenge methods for the registered client.- Returns:
- a list of the registered client's disallowed proof keys
-
getAuthenticators
Returns the list of allowed authenticators for the registered client.- Returns:
- a list of the registered client's authenticators
-
getBackchannelAuthenticators
Returns the list of allowed backchannel authenticators for the registered client.- Returns:
- a list of the registered client's backchannel authenticators
-
getAuthenticatorFilters
Returns the list of authenticator filters for the registered client.- Returns:
- a list of the registered client's authenticator filters
-
getAuditData
Description copied from interface:AuditableEventGet allAuditDataassociated with this auditable event.This method must always return the same instant of
AuditData.- Specified by:
getAuditDatain interfaceAuditableEvent- Returns:
- the
AuditDataconcisely describing the auditable data of this event
-
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.
-