Class CertificateRestResponseV2
- java.lang.Object
-
- de.trustable.ca3s.core.service.dto.ejbca.CertificateRestResponseV2
-
@Generated(value="io.swagger.codegen.v3.generators.java.JavaClientCodegen", date="2024-02-27T11:17:53.164838525Z[GMT]") public class CertificateRestResponseV2 extends ObjectCertificateRestResponseV2
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCertificateRestResponseV2.CustomTypeAdapterFactorystatic classCertificateRestResponseV2.RevocationReasonEnumRevocation reson
-
Field Summary
-
Constructor Summary
Constructors Constructor Description CertificateRestResponseV2()CertificateRestResponseV2(String fingerprint, String cAFingerprint, Integer certificateProfileId, Integer endEntityProfileId, String certificateProfile, String endEntityProfile, Long expireDate, Long invalidityDate, String issuerDN, Long notBefore, Long revocationDate, Integer revocationReason, String serialNumber, Integer status, String subjectAltName, String subjectDN, String subjectKeyId, String tag, Integer type, Long udpateTime, String username, String base64Cert, String certificateRequest, Integer crlPartitionIndex)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetBase64Cert()Base64 encoded certificateStringgetcAFingerprint()Certificate Authority fingerprintStringgetCertificateProfile()Certificate Profile NameIntegergetCertificateProfileId()Certificate Profile IdentifierStringgetCertificateRequest()Certificate requestIntegergetCrlPartitionIndex()CRL partition indexStringgetEndEntityProfile()End Entity Profile NameIntegergetEndEntityProfileId()End Entity Profile IdentifierLonggetExpireDate()Date after which certificate should be considered expiredStringgetFingerprint()Certificate fingerprintLonggetInvalidityDate()StringgetIssuerDN()Issuer Distinguished NameLonggetNotBefore()Date at which certificate became validLonggetRevocationDate()Revocation dateIntegergetRevocationReason()Revocation resonStringgetSerialNumber()Hex Serial NumberIntegergetStatus()Certificate statusStringgetSubjectAltName()Subject Alternative Name (SAN)StringgetSubjectDN()Subject Distinguished NameStringgetSubjectKeyId()Subject Key IdentifierStringgetTag()Get tagIntegergetType()Get typeLonggetUdpateTime()Update timeStringgetUsername()UsernameinthashCode()StringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_FINGERPRINT
public static final String SERIALIZED_NAME_FINGERPRINT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_C_A_FINGERPRINT
public static final String SERIALIZED_NAME_C_A_FINGERPRINT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CERTIFICATE_PROFILE_ID
public static final String SERIALIZED_NAME_CERTIFICATE_PROFILE_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_END_ENTITY_PROFILE_ID
public static final String SERIALIZED_NAME_END_ENTITY_PROFILE_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CERTIFICATE_PROFILE
public static final String SERIALIZED_NAME_CERTIFICATE_PROFILE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_END_ENTITY_PROFILE
public static final String SERIALIZED_NAME_END_ENTITY_PROFILE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_EXPIRE_DATE
public static final String SERIALIZED_NAME_EXPIRE_DATE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_INVALIDITY_DATE
public static final String SERIALIZED_NAME_INVALIDITY_DATE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ISSUER_D_N
public static final String SERIALIZED_NAME_ISSUER_D_N
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_NOT_BEFORE
public static final String SERIALIZED_NAME_NOT_BEFORE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_REVOCATION_DATE
public static final String SERIALIZED_NAME_REVOCATION_DATE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_REVOCATION_REASON
public static final String SERIALIZED_NAME_REVOCATION_REASON
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SERIAL_NUMBER
public static final String SERIALIZED_NAME_SERIAL_NUMBER
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_STATUS
public static final String SERIALIZED_NAME_STATUS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SUBJECT_ALT_NAME
public static final String SERIALIZED_NAME_SUBJECT_ALT_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SUBJECT_D_N
public static final String SERIALIZED_NAME_SUBJECT_D_N
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SUBJECT_KEY_ID
public static final String SERIALIZED_NAME_SUBJECT_KEY_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TAG
public static final String SERIALIZED_NAME_TAG
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TYPE
public static final String SERIALIZED_NAME_TYPE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_UDPATE_TIME
public static final String SERIALIZED_NAME_UDPATE_TIME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_USERNAME
public static final String SERIALIZED_NAME_USERNAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_BASE64_CERT
public static final String SERIALIZED_NAME_BASE64_CERT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CERTIFICATE_REQUEST
public static final String SERIALIZED_NAME_CERTIFICATE_REQUEST
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CRL_PARTITION_INDEX
public static final String SERIALIZED_NAME_CRL_PARTITION_INDEX
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CertificateRestResponseV2
public CertificateRestResponseV2()
-
CertificateRestResponseV2
public CertificateRestResponseV2(String fingerprint, String cAFingerprint, Integer certificateProfileId, Integer endEntityProfileId, String certificateProfile, String endEntityProfile, Long expireDate, Long invalidityDate, String issuerDN, Long notBefore, Long revocationDate, Integer revocationReason, String serialNumber, Integer status, String subjectAltName, String subjectDN, String subjectKeyId, String tag, Integer type, Long udpateTime, String username, String base64Cert, String certificateRequest, Integer crlPartitionIndex)
-
-
Method Detail
-
getFingerprint
@Nullable public String getFingerprint()
Certificate fingerprint- Returns:
- fingerprint
-
getcAFingerprint
@Nullable public String getcAFingerprint()
Certificate Authority fingerprint- Returns:
- cAFingerprint
-
getCertificateProfileId
@Nullable public Integer getCertificateProfileId()
Certificate Profile Identifier- Returns:
- certificateProfileId
-
getEndEntityProfileId
@Nullable public Integer getEndEntityProfileId()
End Entity Profile Identifier- Returns:
- endEntityProfileId
-
getCertificateProfile
@Nullable public String getCertificateProfile()
Certificate Profile Name- Returns:
- certificateProfile
-
getEndEntityProfile
@Nullable public String getEndEntityProfile()
End Entity Profile Name- Returns:
- endEntityProfile
-
getExpireDate
@Nullable public Long getExpireDate()
Date after which certificate should be considered expired- Returns:
- expireDate
-
getInvalidityDate
@Nullable public Long getInvalidityDate()
-
getIssuerDN
@Nullable public String getIssuerDN()
Issuer Distinguished Name- Returns:
- issuerDN
-
getNotBefore
@Nullable public Long getNotBefore()
Date at which certificate became valid- Returns:
- notBefore
-
getRevocationDate
@Nullable public Long getRevocationDate()
Revocation date- Returns:
- revocationDate
-
getRevocationReason
@Nullable public Integer getRevocationReason()
Revocation reson- Returns:
- revocationReason
-
getSerialNumber
@Nullable public String getSerialNumber()
Hex Serial Number- Returns:
- serialNumber
-
getStatus
@Nullable public Integer getStatus()
Certificate status- Returns:
- status
-
getSubjectAltName
@Nullable public String getSubjectAltName()
Subject Alternative Name (SAN)- Returns:
- subjectAltName
-
getSubjectDN
@Nullable public String getSubjectDN()
Subject Distinguished Name- Returns:
- subjectDN
-
getSubjectKeyId
@Nullable public String getSubjectKeyId()
Subject Key Identifier- Returns:
- subjectKeyId
-
getTag
@Nullable public String getTag()
Get tag- Returns:
- tag
-
getType
@Nullable public Integer getType()
Get type- Returns:
- type
-
getUdpateTime
@Nullable public Long getUdpateTime()
Update time- Returns:
- udpateTime
-
getUsername
@Nullable public String getUsername()
Username- Returns:
- username
-
getBase64Cert
@Nullable public String getBase64Cert()
Base64 encoded certificate- Returns:
- base64Cert
-
getCertificateRequest
@Nullable public String getCertificateRequest()
Certificate request- Returns:
- certificateRequest
-
getCrlPartitionIndex
@Nullable public Integer getCrlPartitionIndex()
CRL partition index- Returns:
- crlPartitionIndex
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOExceptionValidates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
IOException- if the JSON Object is invalid with respect to CertificateRestResponseV2
-
-