Class PingResponse.Builder
- All Implemented Interfaces:
PingResponse._FinalStage,PingResponse.EnvironmentStage,PingResponse.PrincipalKeyIdStage,PingResponse.PrincipalTypeStage,PingResponse.StatusStage,PingResponse.TenantIdStage
- Enclosing class:
PingResponse
-
Method Summary
Modifier and TypeMethodDescriptionadditionalProperties(Map<String, Object> additionalProperties) additionalProperty(String key, Object value) allowedActions(List<String> allowedActions) The actions this credential is allowed to perform.allowedActions(Optional<List<String>> allowedActions) The actions this credential is allowed to perform.build()environment(@NotNull PingResponseEnvironment environment) The environment that served this response.from(PingResponse other) principalKeyId(@NotNull String principalKeyId) Stable identifier for your credential.principalLabel(String principalLabel) The label you set on the originatingsk_*orssk_*key.principalLabel(Optional<String> principalLabel) The label you set on the originatingsk_*orssk_*key.principalType(@NotNull PingResponsePrincipalType principalType) The kind of credential you authenticated with:root_key= an unscopedsk_*API key;scoped_key= anssk_*API key with a bound access profile;token= a short-livedst_*token (its expiry is intokenExpiresAt).Always "ok" on a successful (2xx) response.Identifier of the account this credential authenticates under.tokenExpiresAt(Long tokenExpiresAt) When the token expires, as seconds since the Unix epoch (mirrors the JWTexpclaim).tokenExpiresAt(Optional<Long> tokenExpiresAt) When the token expires, as seconds since the Unix epoch (mirrors the JWTexpclaim).
-
Method Details
-
from
- Specified by:
fromin interfacePingResponse.StatusStage
-
status
Always "ok" on a successful (2xx) response. Failures are returned as a non-2xx status, so this value is never anything but "ok".
Always "ok" on a successful (2xx) response. Failures are returned as a non-2xx status, so this value is never anything but "ok".
- Specified by:
statusin interfacePingResponse.StatusStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
tenantId
Identifier of the account this credential authenticates under.
Identifier of the account this credential authenticates under.
- Specified by:
tenantIdin interfacePingResponse.TenantIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
environment
public PingResponse.PrincipalTypeStage environment(@NotNull @NotNull PingResponseEnvironment environment) The environment that served this response.
The environment that served this response.
- Specified by:
environmentin interfacePingResponse.EnvironmentStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
principalType
public PingResponse.PrincipalKeyIdStage principalType(@NotNull @NotNull PingResponsePrincipalType principalType) The kind of credential you authenticated with:
root_key= an unscopedsk_*API key;scoped_key= anssk_*API key with a bound access profile;token= a short-livedst_*token (its expiry is intokenExpiresAt).The kind of credential you authenticated with:
root_key= an unscopedsk_*API key;scoped_key= anssk_*API key with a bound access profile;token= a short-livedst_*token (its expiry is intokenExpiresAt).- Specified by:
principalTypein interfacePingResponse.PrincipalTypeStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
principalKeyId
Stable identifier for your credential. For
sk_*andssk_*keys this is the key id; forst_*tokens it is the token's JWT id (jti).Stable identifier for your credential. For
sk_*andssk_*keys this is the key id; forst_*tokens it is the token's JWT id (jti).- Specified by:
principalKeyIdin interfacePingResponse.PrincipalKeyIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
tokenExpiresAt
When the token expires, as seconds since the Unix epoch (mirrors the JWT
expclaim). Present only whenprincipalTypeistoken.- Specified by:
tokenExpiresAtin interfacePingResponse._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
tokenExpiresAt
When the token expires, as seconds since the Unix epoch (mirrors the JWT
expclaim). Present only whenprincipalTypeistoken.- Specified by:
tokenExpiresAtin interfacePingResponse._FinalStage
-
dataScope
- Specified by:
dataScopein interfacePingResponse._FinalStage
-
dataScope
- Specified by:
dataScopein interfacePingResponse._FinalStage
-
allowedActions
The actions this credential is allowed to perform. Present only when
principalTypeisscoped_key.- Specified by:
allowedActionsin interfacePingResponse._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
allowedActions
The actions this credential is allowed to perform. Present only when
principalTypeisscoped_key.- Specified by:
allowedActionsin interfacePingResponse._FinalStage
-
principalLabel
The label you set on the originating
sk_*orssk_*key. Omitted when no label is set, or when the credential is anst_*token.- Specified by:
principalLabelin interfacePingResponse._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
principalLabel
The label you set on the originating
sk_*orssk_*key. Omitted when no label is set, or when the credential is anst_*token.- Specified by:
principalLabelin interfacePingResponse._FinalStage
-
build
- Specified by:
buildin interfacePingResponse._FinalStage
-
additionalProperty
- Specified by:
additionalPropertyin interfacePingResponse._FinalStage
-
additionalProperties
- Specified by:
additionalPropertiesin interfacePingResponse._FinalStage
-