Class SessionCredentials
- java.lang.Object
-
- software.amazon.awssdk.services.s3.model.SessionCredentials
-
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<SessionCredentials.Builder,SessionCredentials>
@Generated("software.amazon.awssdk: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.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
SessionCredentials.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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)
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()
String
toString()
Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
accessKeyId
public 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.
- Returns:
- 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.
-
secretAccessKey
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.
- Returns:
- 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.
-
sessionToken
public final String sessionToken()
A part of the temporary security credentials. The session token is used to validate the temporary security credentials.
- Returns:
- A part of the temporary security credentials. The session token is used to validate the temporary security credentials.
-
expiration
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.
- Returns:
- 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.
-
toBuilder
public SessionCredentials.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<SessionCredentials.Builder,SessionCredentials>
-
builder
public static SessionCredentials.Builder builder()
-
serializableBuilderClass
public static Class<? extends SessionCredentials.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFields
in interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToField
in interfaceSdkPojo
-
-