Class ImportedCertificate
java.lang.Object
co.ankatech.keymanagement.client.keymanagement.model.ImportedCertificate
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class ImportedCertificate
extends Object
Metadata about a successfully imported trusted certificate (CA).
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic ImportedCertificateCreate an instance of ImportedCertificate given an JSON stringX.509 issuer distinguished name.getKid()Certificate identifier assigned during import.The entry's alias in the original keystore file.Certificate status: - VALID: within its validity period - EXPIRED: past its validity period - NOT_YET_VALID: before its validity periodX.509 subject distinguished name.Start of the certificate's validity (ISO 8601).End of the certificate's validity (ISO 8601).inthashCode()voidvoidvoidsetSourceAlias(String sourceAlias) voidvoidsetSubject(String subject) voidsetValidFrom(String validFrom) voidsetValidUntil(String validUntil) sourceAlias(String sourceAlias) toJson()Convert an instance of ImportedCertificate to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues foundstatic voidvalidateJsonElementAsCandidate(com.google.gson.JsonElement jsonElement) Validates the JSON Element as a candidate of a oneOf schema: the checks ofvalidateJsonElement(JsonElement), and the element carries no member this model does not declare.validUntil(String validUntil)
-
Field Details
-
SERIALIZED_NAME_ISSUER
- See Also:
-
SERIALIZED_NAME_KID
- See Also:
-
SERIALIZED_NAME_SOURCE_ALIAS
- See Also:
-
SERIALIZED_NAME_STATUS
- See Also:
-
SERIALIZED_NAME_SUBJECT
- See Also:
-
SERIALIZED_NAME_VALID_FROM
- See Also:
-
SERIALIZED_NAME_VALID_UNTIL
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ImportedCertificate
public ImportedCertificate()
-
-
Method Details
-
issuer
-
getIssuer
X.509 issuer distinguished name.- Returns:
- issuer
-
setIssuer
-
kid
-
getKid
Certificate identifier assigned during import.- Returns:
- kid
-
setKid
-
sourceAlias
-
getSourceAlias
The entry's alias in the original keystore file.- Returns:
- sourceAlias
-
setSourceAlias
-
status
-
getStatus
Certificate status: - VALID: within its validity period - EXPIRED: past its validity period - NOT_YET_VALID: before its validity period- Returns:
- status
-
setStatus
-
subject
-
getSubject
X.509 subject distinguished name.- Returns:
- subject
-
setSubject
-
validFrom
-
getValidFrom
Start of the certificate's validity (ISO 8601).- Returns:
- validFrom
-
setValidFrom
-
validUntil
-
getValidUntil
End of the certificate's validity (ISO 8601).- Returns:
- validUntil
-
setValidUntil
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to ImportedCertificate
-
validateJsonElementAsCandidate
public static void validateJsonElementAsCandidate(com.google.gson.JsonElement jsonElement) throws IOException Validates the JSON Element as a candidate of a oneOf schema: the checks ofvalidateJsonElement(JsonElement), and the element carries no member this model does not declare. A oneOf schema without a discriminator tells its candidates apart by their member sets, so a candidate is matched on its closed member set.- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is not a ImportedCertificate
-
fromJson
Create an instance of ImportedCertificate given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ImportedCertificate
- Throws:
IOException- if the JSON string is invalid with respect to ImportedCertificate
-
toJson
Convert an instance of ImportedCertificate to an JSON string- Returns:
- JSON string
-