@Generated(value="com.ibm.cos.v2:codegen") public final class SessionCredentials extends Object implements SdkPojo, Serializable, ToCopyableBuilder<SessionCredentials.Builder,SessionCredentials>
The established temporary security credentials of the session.
Directory buckets - These session credentials are only supported for the authentication and authorization of Zonal endpoint API operations on directory buckets.
| Modifier and Type | Class and Description |
|---|---|
static interface |
SessionCredentials.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
accessKeyId()
A unique identifier that's associated with a secret access key.
|
static SessionCredentials.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj)
Indicates whether some other object is "equal to" this one by SDK fields.
|
Instant |
expiration()
Temporary security credentials expire after a specified interval.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Map<String,SdkField<?>> |
sdkFieldNameToField() |
List<SdkField<?>> |
sdkFields() |
String |
secretAccessKey()
A key that's used with the access key ID to cryptographically sign programmatic Amazon Web Services requests.
|
static Class<? extends SessionCredentials.Builder> |
serializableBuilderClass() |
String |
sessionToken()
A part of the temporary security credentials.
|
SessionCredentials.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String accessKeyId()
A unique identifier that's associated with a secret access key. The access key ID and the secret access key are used together to sign programmatic Amazon Web Services requests cryptographically.
public final String secretAccessKey()
A key that's used with the access key ID to cryptographically sign programmatic Amazon Web Services requests. Signing a request identifies the sender and prevents the request from being altered.
public final String sessionToken()
A part of the temporary security credentials. The session token is used to validate the temporary security credentials.
public final Instant expiration()
Temporary security credentials expire after a specified interval. After temporary credentials expire, any calls that you make with those credentials will fail. So you must generate a new set of temporary credentials. Temporary credentials cannot be extended or refreshed beyond the original specified interval.
public SessionCredentials.Builder toBuilder()
ToCopyableBuildertoBuilder in interface ToCopyableBuilder<SessionCredentials.Builder,SessionCredentials>public static SessionCredentials.Builder builder()
public static Class<? extends SessionCredentials.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
SdkPojoSdkPojo class,
and is generated based on a service model.
If an SdkPojo class does not have any inherited fields, equalsBySdkFields
and equals are essentially the same.
equalsBySdkFields in interface SdkPojoobj - the object to be compared withpublic final String toString()
public final Map<String,SdkField<?>> sdkFieldNameToField()
sdkFieldNameToField in interface SdkPojoCopyright © 2026. All rights reserved.