Class ClientAuthenticationAttributes
Object
se.curity.identityserver.sdk.attribute.MapAttributeValue
se.curity.identityserver.sdk.attribute.client.database.ClientAuthenticationAttributes
- All Implemented Interfaces:
Iterable<Attribute>
,AttributeContainer<MapAttributeValue>
,AttributeOrAttributeValue<AttributeValue>
,AttributeValue
,SerializableAsMap
,TypedMapAttributeValue<ClientAuthenticationAttributes>
public final class ClientAuthenticationAttributes
extends MapAttributeValue
implements TypedMapAttributeValue<ClientAuthenticationAttributes>
Configuration settings for
OAuthClient
authentication.- Since:
- 8.4.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface se.curity.identityserver.sdk.attribute.AttributeContainer
AttributeContainer.TypeConversionStrategy
Nested classes/interfaces inherited from interface se.curity.identityserver.sdk.attribute.TypedMapAttributeValue
TypedMapAttributeValue.Merger, TypedMapAttributeValue.MergerInto
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionCreate aClientAuthenticationAttributes
from the provided attributes.of
(ClientAuthenticationVerifier primary, @Nullable AttributeValue secondaryValue, @Nullable AttributeValue secondaryVerifierExpirationValue) of
(ClientAuthenticationVerifier primary, @Nullable ClientAuthenticationVerifier secondary, @Nullable Long secondaryVerifierExpiration) Add the given attributes if not present, or replace the attribute if it already exists.Methods inherited from class se.curity.identityserver.sdk.attribute.MapAttributeValue
append, append, asMap, delete, empty, equals, get, get, getAll, getAttributesByName, getMandatory, getMandatory, getMandatory, getUniqueValuesOfType, getUniqueValuesOfType, getValue, getValuesOfType, getValuesOfType, getValueWithAuthorities, getValueWithMetadata, hashCode, isEmpty, iterator, keys, map, map, map, mapEntries, mapNonRecursive, nullOrOfType, of, of, of, removeAttributes, removeNullAttributeValues, retainAttributes, size, stream, 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, contains, getOptionalValue, getOptionalValue, getOptionalValue, removeAttribute, retainAttribute
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods inherited from interface se.curity.identityserver.sdk.attribute.TypedMapAttributeValue
asMapAttributeValue, with, with, withValue
-
Field Details
-
PRIMARY
- See Also:
-
SECONDARY
- See Also:
-
SECONDARY_VERIFIER_EXPIRATION
- See Also:
-
KEYS
-
-
Method Details
-
of
@Nullable public static @Nullable ClientAuthenticationAttributes of(@Nullable Iterable<Attribute> attributes) Create aClientAuthenticationAttributes
from the provided attributes.The attributes are expected to have the GraphQL schema format.
- Parameters:
attributes
- GraphQL API attributes representing theClientAuthentication
type.- Returns:
- new ClientAuthenticationAttributes
- Throws:
IllegalArgumentException
- if the attributes cannot be converted
-
of
public static ClientAuthenticationAttributes of(ClientAuthenticationVerifier primary, @Nullable ClientAuthenticationVerifier secondary, @Nullable Long secondaryVerifierExpiration) -
of
public static ClientAuthenticationAttributes of(ClientAuthenticationVerifier primary, @Nullable AttributeValue secondaryValue, @Nullable AttributeValue secondaryVerifierExpirationValue) -
withAll
Description copied from interface:TypedMapAttributeValue
Add the given attributes if not present, or replace the attribute if it already exists. Note that two attributes with the same name and different authorities are considered distinct.Notice that this method is the only method of
TypedMapAttributeValue
need to implement. All otherwith
methods are implemented by delegating to this method.Most implementations may want to fully replace the existing attributes with the given attributes, but in certain cases it may be appropriate to perform a "merge" between the existing and the given attributes. Which is the case depends on the semantic of each subtype.
- Specified by:
withAll
in interfaceTypedMapAttributeValue<ClientAuthenticationAttributes>
- Parameters:
attributes
- attribute to add or to override- Returns:
- a copy of this which contains the given Attributes
- See Also:
-
getPrimaryVerifier
-
getSecondaryVerifier
-
getSecondaryVerifierExpiration
-
getSecondaryVerifierExpirationEpochSeconds
-