Class AuthorizationCodeNonceAttributes
Object
se.curity.identityserver.sdk.attribute.Attributes
se.curity.identityserver.sdk.attribute.token.TokenDataAttributes
se.curity.identityserver.sdk.attribute.token.NonceAttributes
se.curity.identityserver.sdk.attribute.token.AuthorizationCodeNonceAttributes
- All Implemented Interfaces:
Iterable<Attribute>
,AttributeContainer<Attributes>
,SerializableAsMap
,KeyBoundTokenAttributes
public final class AuthorizationCodeNonceAttributes
extends NonceAttributes
implements KeyBoundTokenAttributes
This class represents the set of attributes provided to the
NonceIssuer
service when issuing an authorization code.- Since:
- 8.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface se.curity.identityserver.sdk.attribute.AttributeContainer
AttributeContainer.TypeConversionStrategy
-
Field Summary
Fields inherited from class se.curity.identityserver.sdk.attribute.token.TokenDataAttributes
CREATED_KEY, ISSUED_AT_KEY, PURPOSE_KEY
Fields inherited from interface se.curity.identityserver.sdk.attribute.token.KeyBoundTokenAttributes
CONFIRMATION_KEY
-
Method Summary
Modifier and TypeMethodDescriptionCreates an authorization code attributes using the providedmap
.getOwner()
Gets the profile on which this device code was issued, ornull
if the profile is unknown.getScope()
getSid()
getState()
boolean
of
(Attributes attributes) Creates an authorization code nonce attributes using the providedAttributes
.withAuthenticationAttributes
(AuthenticationAttributes authenticationAttributes) Updates the object withauthenticationAttributes
.Methods inherited from class se.curity.identityserver.sdk.attribute.token.NonceAttributes
getExpires
Methods inherited from class se.curity.identityserver.sdk.attribute.token.TokenDataAttributes
getCreated, getCreatedKey, getPurpose
Methods inherited from class se.curity.identityserver.sdk.attribute.Attributes
append, append, asMap, contains, empty, equals, fromMap, get, get, getAll, getMandatory, getMandatoryAttribute, getMandatoryValue, getMandatoryValue, getOptionalValue, getOptionalValue, getOptionalValue, getUniqueValuesOfType, getUniqueValuesOfType, getValuesOfType, getValuesOfType, hashCode, isEmpty, iterator, keys, of, of, of, of, of, of, of, removeAttributes, retainAttributes, size, stream, toMap, toMapWithoutMetadata, toString, with, with
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface se.curity.identityserver.sdk.attribute.AttributeContainer
contains, removeAttribute, retainAttribute
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
of
Creates an authorization code nonce attributes using the providedAttributes
.- Parameters:
attributes
- the attributes used to createAuthorizationCodeNonceAttributes
- Returns:
- the created
AuthorizationCodeNonceAttributes
-
fromMap
Creates an authorization code attributes using the providedmap
.- Parameters:
map
- the map used to createAuthorizationCodeNonceAttributes
- Returns:
- the created
AuthorizationCodeNonceAttributes
-
withAuthenticationAttributes
public AuthorizationCodeNonceAttributes withAuthenticationAttributes(AuthenticationAttributes authenticationAttributes) Updates the object withauthenticationAttributes
.- Parameters:
authenticationAttributes
- the authentication attributes to add- Returns:
- copy of the AuthorizationCodeNonceAttributes, with the
authenticationAttributes
-
getScope
- Returns:
- the value of the
scope
claim
-
getOwner
- Returns:
- the value of the
owner
claim
-
getAllowedClaims
- Returns:
- the allowed claims map, represented as a
MapAttributeValue
-
getAudience
- Returns:
- the value of the
aud
claim
-
getClientId
- Returns:
- the value of the
clientId
claim
-
getRedirectUri
- Returns:
- the value of the
redirectUri
claim
-
isRedirectUriProvided
public boolean isRedirectUriProvided()- Returns:
- the value of the
redirectUriProvided
claim
-
getAuthenticationAttributes
- Returns:
- the authentication attributes or
null
-
getState
- Returns:
- the value of the
state
claim ornull
-
getSid
- Returns:
- the value of the
sid
claim ornull
-
getCodeChallenge
- Returns:
- the value of the
codeChallenge
claim ornull
-
getCodeChallengeMethod
- Returns:
- the value of the
codeChallengeMethod
claim ornull
-
getProfile
Gets the profile on which this device code was issued, ornull
if the profile is unknown.The profile will be
null
if the device code was issued by a server version that didn't add the profile to the nonce data. This should only happen during upgrade periods.- Returns:
- the profile name
-
getConfirmationAttributes
- Specified by:
getConfirmationAttributes
in interfaceKeyBoundTokenAttributes
- Returns:
- the confirmation attributes if this token has them, null if not.
-