public final class Identity extends SqllrObject
| Modifier and Type | Class and Description |
|---|---|
static class |
Identity.Builder
Collects the members of a new
Identity. |
SqllrObject.Reader<T>| Modifier and Type | Field and Description |
|---|---|
static List<String> |
MEMBERS
The members the schema defines, in schema order.
|
static SqllrObject.Reader<Identity> |
READER
Reads a JSON object as a
Identity. |
static List<String> |
REQUIRED
The members the schema requires.
|
| Modifier and Type | Method and Description |
|---|---|
static Identity.Builder |
builder() |
static Identity |
fromJson(Object json)
A
Identity with the members of a JSON object, all kept. |
String |
getAlgorithmId()
The member
algorithmId. |
String |
getComparisonDomain()
The member
comparisonDomain. |
String |
getId()
The member
id. |
String |
getIssuer()
The member
issuer. |
String |
getNumericKey()
The member
numericKey. |
String |
getPolicyId()
The member
policyId. |
String |
getStatus()
The member
status. |
String |
getValue()
The member
value. |
static Identity |
local()
An endpoint whose identity is document-local (Section 3.2, rule 6).
|
static Identity |
opaque(String issuer,
String algorithmId,
String policyId,
String comparisonDomain,
String value)
An endpoint with an opaque producer-local identity, comparable only within its comparison domain.
|
static Identity |
portable(String id)
An endpoint with a portable identity (identity-v1, Section 4): its
ep1 id. |
Identity.Builder |
toBuilder()
A builder holding every member of this object.
|
static Identity |
unavailable(String status)
An endpoint whose portable identity is unavailable:
UNAVAILABLE_COLLATION or
UNAVAILABLE_MIXED_PROFILE. |
public static final SqllrObject.Reader<Identity> READER
Identity.public static Identity fromJson(Object json)
Identity with the members of a JSON object, all kept.public static Identity.Builder builder()
public Identity.Builder toBuilder()
public String getStatus()
status. The status of an endpoint identity. Registry group
'identityStatus' (Section 6.3). Null when absent; throws IllegalStateException when the
member holds another JSON type.public String getId()
id. Present when status is PORTABLE (identity stage: ID_MISSING when
absent). An id computed by EndpointIdV1: 'ep1-' followed by 64 lowercase hexadecimal
characters of a SHA-256 digest (algorithms/identity-v1.md). Null when absent; throws
IllegalStateException when the member holds another JSON type.public String getNumericKey()
numericKey. A 128-bit numeric key (NumericKeyV1): the first 16 bytes of
the SHA-256 digest of an id, big-endian, as 32 lowercase hexadecimal characters, which are
the first 32 hexadecimal characters of the id (Section 11.5; algorithms/identity-v1.md,
Section 5.10). Consumers keep the full id as the authority. Null when absent; throws
IllegalStateException when the member holds another JSON type.public String getIssuer()
issuer. Null when absent; throws IllegalStateException when the member
holds another JSON type.public String getAlgorithmId()
algorithmId. Null when absent; throws IllegalStateException when the
member holds another JSON type.public String getPolicyId()
policyId. Null when absent; throws IllegalStateException when the member
holds another JSON type.public String getComparisonDomain()
comparisonDomain. Null when absent; throws IllegalStateException when the
member holds another JSON type.public String getValue()
value. The opaque producer-local identity. Null when absent; throws
IllegalStateException when the member holds another JSON type.public static Identity portable(String id)
ep1 id.public static Identity local()
public static Identity unavailable(String status)
UNAVAILABLE_COLLATION or
UNAVAILABLE_MIXED_PROFILE.