public class AWSCredentialsImpl extends BaseAmazonWebServicesCredentials implements AmazonWebServicesCredentials
| Modifier and Type | Class and Description |
|---|---|
static class |
AWSCredentialsImpl.DescriptorImpl |
com.cloudbees.plugins.credentials.impl.BaseStandardCredentials.BaseStandardCredentialsDescriptorAmazonWebServicesCredentials.NameProvider| Modifier and Type | Field and Description |
|---|---|
static int |
STS_CREDENTIALS_DURATION_SECONDS |
| Constructor and Description |
|---|
AWSCredentialsImpl(com.cloudbees.plugins.credentials.CredentialsScope scope,
String id,
String accessKey,
String secretKey,
String description) |
AWSCredentialsImpl(com.cloudbees.plugins.credentials.CredentialsScope scope,
String id,
String accessKey,
String secretKey,
String description,
String iamRoleArn,
String iamMfaSerialNumber) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAccessKey() |
com.amazonaws.auth.AWSCredentials |
getCredentials() |
com.amazonaws.auth.AWSCredentials |
getCredentials(String mfaToken) |
String |
getDisplayName() |
String |
getIamMfaSerialNumber() |
String |
getIamRoleArn() |
hudson.util.Secret |
getSecretKey() |
Integer |
getStsTokenDuration() |
void |
refresh() |
boolean |
requiresToken() |
void |
setStsTokenDuration(Integer stsTokenDuration) |
equals, getDescription, getId, hashCodegetDescriptor, getScopeclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitpublic static final int STS_CREDENTIALS_DURATION_SECONDS
public AWSCredentialsImpl(@CheckForNull
com.cloudbees.plugins.credentials.CredentialsScope scope,
@CheckForNull
String id,
@CheckForNull
String accessKey,
@CheckForNull
String secretKey,
@CheckForNull
String description)
@DataBoundConstructor
public AWSCredentialsImpl(@CheckForNull
com.cloudbees.plugins.credentials.CredentialsScope scope,
@CheckForNull
String id,
@CheckForNull
String accessKey,
@CheckForNull
String secretKey,
@CheckForNull
String description,
@CheckForNull
String iamRoleArn,
@CheckForNull
String iamMfaSerialNumber)
public String getAccessKey()
public hudson.util.Secret getSecretKey()
public String getIamRoleArn()
public String getIamMfaSerialNumber()
@NonNull public Integer getStsTokenDuration()
@DataBoundSetter public void setStsTokenDuration(Integer stsTokenDuration)
public boolean requiresToken()
public com.amazonaws.auth.AWSCredentials getCredentials()
getCredentials in interface com.amazonaws.auth.AWSCredentialsProviderpublic com.amazonaws.auth.AWSCredentials getCredentials(String mfaToken)
getCredentials in interface AmazonWebServicesCredentialspublic void refresh()
refresh in interface com.amazonaws.auth.AWSCredentialsProviderpublic String getDisplayName()
getDisplayName in interface AmazonWebServicesCredentialsCopyright © 2016–2022. All rights reserved.