Class AWSCredentialsImpl
- java.lang.Object
-
- com.cloudbees.plugins.credentials.BaseCredentials
-
- com.cloudbees.plugins.credentials.impl.BaseStandardCredentials
-
- com.cloudbees.jenkins.plugins.awscredentials.BaseAmazonWebServicesCredentials
-
- com.cloudbees.jenkins.plugins.awscredentials.AWSCredentialsImpl
-
- All Implemented Interfaces:
com.amazonaws.auth.AWSCredentialsProvider
,AmazonWebServicesCredentials
,com.cloudbees.plugins.credentials.common.IdCredentials
,com.cloudbees.plugins.credentials.common.StandardCredentials
,com.cloudbees.plugins.credentials.Credentials
,ExtensionPoint
,Describable<com.cloudbees.plugins.credentials.Credentials>
,Serializable
public class AWSCredentialsImpl extends BaseAmazonWebServicesCredentials
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AWSCredentialsImpl.DescriptorImpl
-
Nested classes/interfaces inherited from class com.cloudbees.plugins.credentials.impl.BaseStandardCredentials
com.cloudbees.plugins.credentials.impl.BaseStandardCredentials.BaseStandardCredentialsDescriptor
-
Nested classes/interfaces inherited from interface com.cloudbees.jenkins.plugins.awscredentials.AmazonWebServicesCredentials
AmazonWebServicesCredentials.NameProvider
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
Fields Modifier and Type Field Description static int
STS_CREDENTIALS_DURATION_SECONDS
-
Constructor Summary
Constructors Constructor 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)
AWSCredentialsImpl(com.cloudbees.plugins.credentials.CredentialsScope scope, String id, String accessKey, String secretKey, String description, String iamRoleArn, String iamMfaSerialNumber, String iamExternalId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAccessKey()
com.amazonaws.auth.AWSCredentials
getCredentials()
com.amazonaws.auth.AWSCredentials
getCredentials(String mfaToken)
String
getDisplayName()
String
getIamExternalId()
String
getIamMfaSerialNumber()
String
getIamRoleArn()
Secret
getSecretKey()
Integer
getStsTokenDuration()
void
refresh()
boolean
requiresToken()
void
setStsTokenDuration(Integer stsTokenDuration)
-
Methods inherited from class com.cloudbees.plugins.credentials.impl.BaseStandardCredentials
equals, getDescription, getId, hashCode
-
Methods inherited from class com.cloudbees.plugins.credentials.BaseCredentials
getDescriptor, getScope
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Field Detail
-
STS_CREDENTIALS_DURATION_SECONDS
public static final int STS_CREDENTIALS_DURATION_SECONDS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AWSCredentialsImpl
public AWSCredentialsImpl(@CheckForNull com.cloudbees.plugins.credentials.CredentialsScope scope, @CheckForNull String id, @CheckForNull String accessKey, @CheckForNull String secretKey, @CheckForNull String description)
-
AWSCredentialsImpl
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)
-
AWSCredentialsImpl
@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, String iamExternalId)
-
-
Method Detail
-
getAccessKey
public String getAccessKey()
-
getSecretKey
public Secret getSecretKey()
-
getIamRoleArn
public String getIamRoleArn()
-
getIamExternalId
public String getIamExternalId()
-
getIamMfaSerialNumber
public String getIamMfaSerialNumber()
-
getStsTokenDuration
@NonNull public Integer getStsTokenDuration()
-
setStsTokenDuration
@DataBoundSetter public void setStsTokenDuration(Integer stsTokenDuration)
-
requiresToken
public boolean requiresToken()
-
getCredentials
public com.amazonaws.auth.AWSCredentials getCredentials()
-
getCredentials
public com.amazonaws.auth.AWSCredentials getCredentials(String mfaToken)
-
refresh
public void refresh()
-
getDisplayName
public String getDisplayName()
-
-