Class ScopedKeyResponse.Builder
- Enclosing class:
ScopedKeyResponse
-
Method Summary
Modifier and TypeMethodDescriptionaccessProfileRef(String accessProfileRef) accessProfileRef(Optional<String> accessProfileRef) Reference to the bound access profile, in the formtenant#context#usr_user(the user segment carries theusr_prefix).additionalProperties(Map<String, Object> additionalProperties) additionalProperty(String key, Object value) build()The app context the key is bound to.When the key was created, as an ISO-8601 UTC timestamp.from(ScopedKeyResponse other) Server-generated identifier for the key, stable for its entire lifetime.The human-readable name you gave the key when creating it.keyType(ScopedKeyResponseKeyType keyType) keyType(Optional<ScopedKeyResponseKeyType> keyType) Alwaysscopedfor keys created through this endpoint.Optional display label for the key, surfaced through/v1/pingasprincipalLabel.lastUsedAt(String lastUsedAt) lastUsedAt(Optional<String> lastUsedAt) When the key was most recently used, as an ISO-8601 UTC timestamp.The raw secret key.When the key was revoked, as an ISO-8601 UTC timestamp.status(ScopedKeyResponseStatus status) status(Optional<ScopedKeyResponseStatus> status) The key's lifecycle status:activeorrevoked.The tenant the key operates on — either your live or your test environment.The user the key acts as.userType(ScopedKeyResponseUserType userType) userType(Optional<ScopedKeyResponseUserType> userType) The bound user's type:HUMANorSERVICE.
-
Method Details
-
from
-
keyId
Server-generated identifier for the key, stable for its entire lifetime. Pass this in the URL path of the get and revoke endpoints.
-
keyId
-
rawKey
The raw secret key. Returned ONLY in the response to creating the key; all subsequent reads omit this field. Treat it as a sensitive credential and store it securely.
-
rawKey
-
keyName
The human-readable name you gave the key when creating it.
-
keyName
-
label
Optional display label for the key, surfaced through
/v1/pingasprincipalLabel. Omitted when no label was set. -
label
-
tenantId
The tenant the key operates on — either your live or your test environment.
-
tenantId
-
contextId
The app context the key is bound to.
-
contextId
-
userId
The user the key acts as. This is the same user ID used by the
/v1/usersendpoints. -
userId
-
userType
The bound user's type:
HUMANorSERVICE. Included as a convenience for filtering in admin interfaces. -
userType
-
status
The key's lifecycle status:
activeorrevoked. -
status
-
keyType
Always
scopedfor keys created through this endpoint. The field exists so this response shape can also represent unscoped (sk_*) keys. -
keyType
-
accessProfileRef
Reference to the bound access profile, in the form
tenant#context#usr_user(the user segment carries theusr_prefix). Useful for cross-referencing the profile via/v1/app-contexts/{contextId}/profiles/{principalId}. -
accessProfileRef
-
createdAt
When the key was created, as an ISO-8601 UTC timestamp.
-
createdAt
-
revokedAt
When the key was revoked, as an ISO-8601 UTC timestamp. Present only on revoked keys.
-
revokedAt
-
lastUsedAt
When the key was most recently used, as an ISO-8601 UTC timestamp. This value is coarse (updated at most about once an hour) and best-effort. Null if the key has not been used since usage tracking began.
-
lastUsedAt
-
build
-
additionalProperty
-
additionalProperties
-