public class UploadSigningCertificateRequest extends AmazonWebServiceRequest implements Serializable
UploadSigningCertificate operation
.
Uploads an X.509 signing certificate and associates it with the
specified user. Some AWS services use X.509 signing certificates to
validate requests that are signed with a corresponding private key.
When you upload the certificate, its default status is
Active
.
If the UserName
field is not specified, the user name is
determined implicitly based on the AWS access key ID used to sign the
request. Because this action works for access keys under the AWS
account, this API can be used to manage root credentials even if the
AWS account has no associated users.
NOTE:Because the body of a X.509 certificate can be large, you should use POST rather than GET when calling UploadSigningCertificate. For information about setting up signatures and authorization through the API, go to Signing AWS API Requests in the AWS General Reference. For general information about using the Query API with IAM, go to Making Query Requests in Using IAM.
Constructor and Description |
---|
UploadSigningCertificateRequest()
Default constructor for a new UploadSigningCertificateRequest object.
|
UploadSigningCertificateRequest(String certificateBody)
Constructs a new UploadSigningCertificateRequest object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getCertificateBody()
The contents of the signing certificate.
|
String |
getUserName()
Name of the user the signing certificate is for.
|
int |
hashCode() |
void |
setCertificateBody(String certificateBody)
The contents of the signing certificate.
|
void |
setUserName(String userName)
Name of the user the signing certificate is for.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
UploadSigningCertificateRequest |
withCertificateBody(String certificateBody)
The contents of the signing certificate.
|
UploadSigningCertificateRequest |
withUserName(String userName)
Name of the user the signing certificate is for.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
public UploadSigningCertificateRequest()
public UploadSigningCertificateRequest(String certificateBody)
certificateBody
- The contents of the signing certificate.public String getUserName()
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]*
public void setUserName(String userName)
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]*
userName
- Name of the user the signing certificate is for.public UploadSigningCertificateRequest withUserName(String userName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]*
userName
- Name of the user the signing certificate is for.public String getCertificateBody()
Constraints:
Length: 1 - 16384
Pattern: [
-ÿ]+
public void setCertificateBody(String certificateBody)
Constraints:
Length: 1 - 16384
Pattern: [
-ÿ]+
certificateBody
- The contents of the signing certificate.public UploadSigningCertificateRequest withCertificateBody(String certificateBody)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 16384
Pattern: [
-ÿ]+
certificateBody
- The contents of the signing certificate.public String toString()
toString
in class Object
Object.toString()
Copyright © 2016. All rights reserved.