Class DeviceAttributes
Object
se.curity.identityserver.sdk.attribute.Attributes
se.curity.identityserver.sdk.attribute.scim.v2.ResourceAttributes<DeviceAttributes>
se.curity.identityserver.sdk.attribute.scim.v2.extensions.DeviceAttributes
- All Implemented Interfaces:
Iterable<Attribute>,AttributeContainer<Attributes>,SerializableAsMap
Device attributes.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class se.curity.identityserver.sdk.attribute.scim.v2.ResourceAttributes
EXTERNAL_ID, ID, META, SCHEMAS -
Method Summary
Modifier and TypeMethodDescriptionstatic DeviceAttributescreateDevice(@Nullable String id, @Nullable String deviceId, @Nullable String accountId, @Nullable String externalId, @Nullable String alias, @Nullable String formFactor, @Nullable String deviceType, @Nullable String owner, @Nullable Instant expiresAt, @Nullable Meta meta) protected DeviceAttributesfrom(Attributes attributes) Create a new instance of R from the provided Attributes.getAlias()getOwner()static DeviceAttributeswithAccountId(String accountId) withDeviceId(String deviceId) withDeviceType(String deviceType) withExpiresAt(Instant expiresAt) withFormFactor(String formFactor) Update the resource with id.Methods inherited from class se.curity.identityserver.sdk.attribute.scim.v2.ResourceAttributes
addSchema, append, filter, fromMap, getBooleanValue, getExternalId, getId, getListOfUniqueStringsValue, getMeta, getSchemas, getStringValue, getStringValue, logFailedAttributeValidation, logFailedAttributeValidation, removeAttribute, with, with, withExternalId, withMeta, withSchemas, wrapMethods inherited from class se.curity.identityserver.sdk.attribute.Attributes
append, asMap, contains, empty, equals, fromMap, get, getAll, getMandatoryAttribute, getMandatoryValue, getValuesOfType, hashCode, isEmpty, iterator, keys, of, of, of, of, of, of, removeAttributes, retainAttributes, size, stream, toMap, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface se.curity.identityserver.sdk.attribute.AttributeContainer
contains, getOptionalValue, getOptionalValue, retainAttributeMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
RESOURCE_TYPE
- See Also:
-
DEVICES_SCHEMA
- See Also:
-
DEVICE_ID
- See Also:
-
ACCOUNT_ID
- See Also:
-
ALIAS
- See Also:
-
FORM_FACTOR
- See Also:
-
DEVICE_TYPE
- See Also:
-
EXPIRES_AT
- See Also:
-
OWNER
- See Also:
-
ATTRIBUTES
- See Also:
-
-
Method Details
-
of
-
createDevice
public static DeviceAttributes createDevice(@Nullable String id, @Nullable String deviceId, @Nullable String accountId, @Nullable String externalId, @Nullable String alias, @Nullable String formFactor, @Nullable String deviceType, @Nullable String owner, @Nullable Instant expiresAt, @Nullable Meta meta) -
from
Description copied from class:ResourceAttributesCreate a new instance of R from the provided Attributes.- Specified by:
fromin classResourceAttributes<DeviceAttributes>- Parameters:
attributes- source attributes.- Returns:
- attributes wrapped into an instance of R.
-
getDeviceId
- Returns:
- the ID given by the device itself on registration.
For example, Encap uses a registrationId given by the Encap server on registration.
This is not unique, what is unique is the combination
deviceId + accountId.
-
getAccountId
- Returns:
- The ID of the user using this device. Notice that the same deviceId may be associated with multiple accounts.
-
getAlias
- Returns:
- The alias of this device, given by the user on registration.
-
getFormFactor
- Returns:
- the device's form-factor.
-
getDeviceType
- Returns:
- the devices' type.
-
getExpiresAt
- Returns:
- the expiration time of this device.
-
getOwner
- Returns:
- The ID of the owner of this device.
-
withAlias
-
withFormFactor
-
withDeviceType
-
withExpiresAt
-
withDeviceId
-
withOwner
-
withAccountId
-
withId
Description copied from class:ResourceAttributesUpdate the resource with id.- Overrides:
withIdin classResourceAttributes<DeviceAttributes>- Parameters:
id- to add- Returns:
- copy of the resource with the added id
-