Class UserAuthenticationConfigAttributes
Object
se.curity.identityserver.sdk.attribute.MapAttributeValue
se.curity.identityserver.sdk.attribute.UserAuthenticationConfigAttributes
- All Implemented Interfaces:
Iterable<Attribute>
,AttributeContainer<MapAttributeValue>
,AttributeOrAttributeValue<AttributeValue>
,AttributeValue
,SerializableAsMap
,UserAuthenticationConfig
public final class UserAuthenticationConfigAttributes
extends MapAttributeValue
implements UserAuthenticationConfig
User authentication configuration settings.
- Since:
- 8.4.0
- "Implementation Note:"
- this class was implemented to map directly to GraphQL parameters names
in the
UserAuthentication
type, therefore it can be easily serialized to/from GraphQL objects. The only exception to that isallowed_backchannel_authenticators
, which come from theBackchannelAuthenticationCapability
type instead. That's why the backchannel-authenticators are treated separately and not serialized with thisMapAttributeValue
.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface se.curity.identityserver.sdk.attribute.AttributeContainer
AttributeContainer.TypeConversionStrategy
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
-
Constructor Summary
ConstructorsConstructorDescriptionUserAuthenticationConfigAttributes
(Iterable<Attribute> attributeValue, Collection<String> backchannelAuthenticators) Create a new instance ofUserAuthenticationConfigAttributes
that includes not only the attributes stored within it, but also external values which are required for implementingUserAuthenticationConfig
. -
Method Summary
Modifier and TypeMethodDescriptionof
(@Nullable MapAttributeValue attributeValue, Collection<String> backchannelAuthenticators) 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, 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.oauth.auth.UserAuthenticationConfig
getBackChannelLogoutSessionRequired, getFrontChannelLogoutSessionRequired
-
Field Details
-
ALLOWED_AUTHENTICATORS
- See Also:
-
REQUIRED_CLAIMS
- See Also:
-
CONTEXT_INFO
- See Also:
-
TEMPLATE_AREA
- See Also:
-
FORCE_AUTHENTICATION
- See Also:
-
FRESHNESS
- See Also:
-
LOCALE
- See Also:
-
AUTHENTICATOR_FILTERS
- See Also:
-
FRONTCHANNEL_LOGOUT_URI
- See Also:
-
BACKCHANNEL_LOGOUT_URI
- See Also:
-
HTTP_CLIENT_ID
- See Also:
-
ALLOWED_POST_LOGOUT_REDIRECT_URIS
- See Also:
-
CONSENT
- See Also:
-
DEFAULT_CONTEXT_INFO
- See Also:
-
-
Constructor Details
-
UserAuthenticationConfigAttributes
public UserAuthenticationConfigAttributes(Iterable<Attribute> attributeValue, Collection<String> backchannelAuthenticators) Create a new instance ofUserAuthenticationConfigAttributes
that includes not only the attributes stored within it, but also external values which are required for implementingUserAuthenticationConfig
. Notice that the external values must NOT be included in the serialized version of this class.- Parameters:
attributeValue
- source attributesbackchannelAuthenticators
- external data containing the backchannel authenticators
-
-
Method Details
-
of
@Nullable public static @Nullable UserAuthenticationConfigAttributes of(@Nullable MapAttributeValue attributeValue, Collection<String> backchannelAuthenticators) -
getAllowedBackchannelAuthenticatorList
- Specified by:
getAllowedBackchannelAuthenticatorList
in interfaceUserAuthenticationConfig
- Returns:
- whitelist of allowed backchannel authenticator ids for a user; an empty list means all backchannel authenticators are allowed.
-
getConsent
-
getAllowedAuthenticatorList
- Specified by:
getAllowedAuthenticatorList
in interfaceUserAuthenticationConfig
- Returns:
- whitelist of allowed authenticator ids for a user; an empty list means all authenticators are allowed.
-
getRequiredClaims
- Specified by:
getRequiredClaims
in interfaceUserAuthenticationConfig
- Returns:
- all required claims for a user.
-
getContextInfo
- Specified by:
getContextInfo
in interfaceUserAuthenticationConfig
- Returns:
- the context information for a user.
-
getTemplateArea
- Specified by:
getTemplateArea
in interfaceUserAuthenticationConfig
- Returns:
- optional template area for a user.
-
getForceAuthn
- Specified by:
getForceAuthn
in interfaceUserAuthenticationConfig
- Returns:
- optional setting to force authentication.
-
getFreshness
- Specified by:
getFreshness
in interfaceUserAuthenticationConfig
- Returns:
- optional freshness for a user.
-
getLocale
- Specified by:
getLocale
in interfaceUserAuthenticationConfig
- Returns:
- optional locale for a user
-
getAuthenticatorFilters
- Specified by:
getAuthenticatorFilters
in interfaceUserAuthenticationConfig
- Returns:
- the authentication filters for a user.
-
getFrontChannelLogoutUri
- Specified by:
getFrontChannelLogoutUri
in interfaceUserAuthenticationConfig
- Returns:
- the URI of the RP to use for front channel logout notification
-
getBackChannelLogoutUri
- Specified by:
getBackChannelLogoutUri
in interfaceUserAuthenticationConfig
- Returns:
- the URI of the RP to use for back channel logout notification
-
getHttpClient
- Specified by:
getHttpClient
in interfaceUserAuthenticationConfig
- Returns:
- the id of an HTTP Client that is able to connect to the backchannel logout uri; if not set, a default HTTP Client should be used
-
getAllowedPostLogoutRedirectUriStrings
- Specified by:
getAllowedPostLogoutRedirectUriStrings
in interfaceUserAuthenticationConfig
- Returns:
- the set of URI Strings that the client may provide as post logout redirect url.
Prefer to use
UserAuthenticationConfig.getAllowedPostLogoutRedirectUris()
unless validating the URIs.
-
getAllowedPostLogoutRedirectUris
- Specified by:
getAllowedPostLogoutRedirectUris
in interfaceUserAuthenticationConfig
- Returns:
- the set of URIs that the client may provide as post logout redirect url.
-