Interface Delegation
- All Superinterfaces:
Activatable<DelegationStatus>,SerializableAsMap
A delegation is an authorization grant given by the resource owner to a third-party to access
some resource.
The server manages such authorization, which can be materialized in the form of an OAuth token, for example.
The same delegation can be used to issue multiple tokens at different times.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringclaims as used before the configurable claims system was introduced meant "optional attributes".static final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringDeprecated, for removal: This API element is subject to removal in a future version.since 4.2 - scheduled for removal in 8.0.static final Stringstatic final Stringstatic final String -
Method Summary
Modifier and TypeMethodDescriptionasMap()Returns the consent information stored in the delegation.longlonggetId()getOwner()getScope()Deprecated.since 4.0.0, prefer to usegetClaimMap().Methods inherited from interface se.curity.identityserver.sdk.data.Activatable
isActive
-
Field Details
-
KEY_ID
- See Also:
-
KEY_OWNER
- See Also:
-
KEY_CREATED
- See Also:
-
KEY_SCOPE
- See Also:
-
KEY_SCOPECLAIMS
- See Also:
-
KEY_CLIENT_ID
- See Also:
-
KEY_EXPIRES
- See Also:
-
KEY_STATUS
- See Also:
-
KEY_AUTHENTICATION_ATTRIBUTES
- See Also:
-
KEY_REQUESTED_CLAIMS
Deprecated, for removal: This API element is subject to removal in a future version.since 4.2 - scheduled for removal in 8.0.- See Also:
-
KEY_CLAIMS
claims as used before the configurable claims system was introduced meant "optional attributes".- See Also:
-
KEY_REDIRECT_URI
- See Also:
-
KEY_AUTHORIZATION_CODE_HASH
- See Also:
-
KEY_CLAIM_MAP
- See Also:
-
KEY_MTLS_CLIENT_CERTIFICATE
- See Also:
-
KEY_MTLS_CLIENT_CERTIFICATE_X5TS256
- See Also:
-
KEY_MTLS_CLIENT_CERTIFICATE_DN
- See Also:
-
KEY_CUSTOM_CLAIM_VALUES
- See Also:
-
KEY_CONSENT_ATTRIBUTES
- See Also:
-
-
Method Details
-
getId
String getId()- Returns:
- the ID of the token.
-
getOwner
String getOwner()- Returns:
- the owner of the delegation.
-
getCreated
long getCreated()- Returns:
- the time when the delegation was created, in epoch-seconds.
-
getScope
String getScope()- Returns:
- the scopes (whitespace separated) this delegation has.
-
getScopeClaims
Deprecated.since 4.0.0, prefer to usegetClaimMap().The expanded claims from the scopes of this delegation.- Returns:
- the scope-claims this delegation has.
- Since:
- 3.0.0
-
getClaimMap
- Returns:
- a map from claim usage to the claims granted by this delegation.
- Since:
- 4.0.0
-
getClientId
String getClientId()- Returns:
- the ID of the client that may use tokens based on this delegation.
-
getRedirectUri
- Returns:
- the URI to redirect clients to once a token is issued.
-
getAuthorizationCodeHash
- Returns:
- a hash of the authorization code that initiated issuance of this delegation
-
getAuthenticationAttributes
AuthenticationAttributes getAuthenticationAttributes()- Returns:
- the authentication attributes that this delegation is based on
-
getCustomClaimValues
- Returns:
- a map containing all values for custom claims cached on this delegation
- Since:
- 4.1.0
-
getExpires
long getExpires()- Specified by:
getExpiresin interfaceActivatable<DelegationStatus>- Returns:
- the time when the delegation expires, in epoch-seconds.
-
getStatus
DelegationStatus getStatus()- Specified by:
getStatusin interfaceActivatable<DelegationStatus>- Returns:
- the current status of this delegation.
-
getEnumActiveStatus
DelegationStatus getEnumActiveStatus()- Specified by:
getEnumActiveStatusin interfaceActivatable<DelegationStatus>- Returns:
- the current status of this delegation.
-
getMtlsClientCertificate
-
getMtlsClientCertificateX5TS256
-
getMtlsClientCertificateDN
-
getConsentResult
Returns the consent information stored in the delegation.- Returns:
- the delegation consent result information.
-
getClaims
- Returns:
- all fields which are added to the source Map for this delegation but are not known (i.e. not mapped by one of the keys declared in this interface).
-
asMap
- Specified by:
asMapin interfaceSerializableAsMap- Returns:
- a Map representing this delegation's full information.
-