TokenCertificate Class
- java.
lang. Object - com.
azure. resourcemanager. containerregistry. models. TokenCertificate
- com.
Implements
public final class TokenCertificate
implements JsonSerializable<TokenCertificate>
The properties of a certificate used for authenticating a token.
Constructor Summary
Constructor | Description |
---|---|
TokenCertificate() |
Creates an instance of Token |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
encodedPemCertificate()
Get the encoded |
Offset |
expiry()
Get the expiry property: The expiry datetime of the certificate. |
static
Token |
fromJson(JsonReader jsonReader)
Reads an instance of Token |
Token |
name()
Get the name property: The name property. |
String |
thumbprint()
Get the thumbprint property: The thumbprint of the certificate. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Token |
withEncodedPemCertificate(String encodedPemCertificate)
Set the encoded |
Token |
withExpiry(OffsetDateTime expiry)
Set the expiry property: The expiry datetime of the certificate. |
Token |
withName(TokenCertificateName name)
Set the name property: The name property. |
Token |
withThumbprint(String thumbprint)
Set the thumbprint property: The thumbprint of the certificate. |
Methods inherited from java.lang.Object
Constructor Details
TokenCertificate
public TokenCertificate()
Creates an instance of TokenCertificate class.
Method Details
encodedPemCertificate
public String encodedPemCertificate()
Get the encodedPemCertificate property: Base 64 encoded string of the public certificate1 in PEM format that will be used for authenticating the token.
Returns:
expiry
public OffsetDateTime expiry()
Get the expiry property: The expiry datetime of the certificate.
Returns:
fromJson
public static TokenCertificate fromJson(JsonReader jsonReader)
Reads an instance of TokenCertificate from the JsonReader.
Parameters:
Returns:
Throws:
name
public TokenCertificateName name()
Get the name property: The name property.
Returns:
thumbprint
public String thumbprint()
Get the thumbprint property: The thumbprint of the certificate.
Returns:
toJson
validate
public void validate()
Validates the instance.
withEncodedPemCertificate
public TokenCertificate withEncodedPemCertificate(String encodedPemCertificate)
Set the encodedPemCertificate property: Base 64 encoded string of the public certificate1 in PEM format that will be used for authenticating the token.
Parameters:
Returns:
withExpiry
public TokenCertificate withExpiry(OffsetDateTime expiry)
Set the expiry property: The expiry datetime of the certificate.
Parameters:
Returns:
withName
public TokenCertificate withName(TokenCertificateName name)
Set the name property: The name property.
Parameters:
Returns:
withThumbprint
public TokenCertificate withThumbprint(String thumbprint)
Set the thumbprint property: The thumbprint of the certificate.
Parameters:
Returns:
Applies to
Azure SDK for Java