Package ai.vectros.types
Class ScopedKeyResponse
java.lang.Object
ai.vectros.types.ScopedKeyResponse
-
Method Details
-
getKeyId
- Returns:
- Server-generated identifier for the key, stable for its entire lifetime. Pass this in the URL path of the get and revoke endpoints.
-
getRawKey
- Returns:
- 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.
-
getKeyName
- Returns:
- The human-readable name you gave the key when creating it.
-
getLabel
- Returns:
- Optional display label for the key, surfaced through
/v1/pingasprincipalLabel. Omitted when no label was set.
-
getTenantId
- Returns:
- The tenant the key operates on — either your live or your test environment.
-
getContextId
- Returns:
- The app context the key is bound to.
-
getUserId
- Returns:
- The user the key acts as. This is the same user ID used by the
/v1/usersendpoints.
-
getUserType
- Returns:
- The bound user's type:
HUMANorSERVICE. Included as a convenience for filtering in admin interfaces.
-
getStatus
- Returns:
- The key's lifecycle status:
activeorrevoked.
-
getKeyType
- Returns:
- Always
scopedfor keys created through this endpoint. The field exists so this response shape can also represent unscoped (sk_*) keys.
-
getAccessProfileRef
- Returns:
- 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}.
-
getCreatedAt
- Returns:
- When the key was created, as an ISO-8601 UTC timestamp.
-
getRevokedAt
- Returns:
- When the key was revoked, as an ISO-8601 UTC timestamp. Present only on revoked keys.
-
getLastUsedAt
- Returns:
- 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.
-
equals
-
getAdditionalProperties
-
hashCode
public int hashCode() -
toString
-
builder
-