Interface CaCertificateContentSpi
public interface CaCertificateContentSpi
SPI providing a generic public key.
- Since:
- 0.2.0
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
getAid()
Return the AID value.long
Returns the validity end date of the certificate in long format.Returns the public key.byte[]
Returns the reference of the public key as a byte array.long
Returns the validity start date of the certificate in long format.boolean
Indicates if the AID has to be checked.boolean
Indicates if the AID is truncated.boolean
Indicates if the certificate can be used to authenticate CA certificates.boolean
Indicates if the certificate can be used to authenticate card certificates.
-
Method Details
-
getPublicKey
PublicKey getPublicKey()Returns the public key.- Returns:
- A non-null reference.
- Since:
- 0.2.0
- See Also:
-
getPublicKeyReference
byte[] getPublicKeyReference()Returns the reference of the public key as a byte array.- Returns:
- A non-empty byte array.
- Since:
- 0.2.0
-
getStartDate
long getStartDate()Returns the validity start date of the certificate in long format.The date is represented in the format 0xYYYYMMDD, where YYYY is the four-digit year, MM is the two-digit month, and DD is the two-digit day.
If the validity start date is not defined or available, the method returns 0.
- Returns:
- 0 if the validity start date is not defined.
- Since:
- 0.2.0
-
getEndDate
long getEndDate()Returns the validity end date of the certificate in long format.The date is represented in the format 0xYYYYMMDD, where YYYY is the four-digit year, MM is the two-digit month, and DD is the two-digit day.
If the validity end date is not defined or available, the method returns 0.
- Returns:
- 0 if the validity end date is not defined.
- Since:
- 0.2.0
-
isAidCheckRequested
boolean isAidCheckRequested()Indicates if the AID has to be checked.- Returns:
- true if the AID must be checked.
- Since:
- 0.2.0
-
isAidTruncated
boolean isAidTruncated()Indicates if the AID is truncated.- Returns:
- true if the AID is truncated.
- Since:
- 0.2.0
-
getAid
byte[] getAid()Return the AID value.- Returns:
- null if the AID check is not requested.
- Since:
- 0.2.0
-
isCaCertificatesAuthenticationAllowed
boolean isCaCertificatesAuthenticationAllowed()Indicates if the certificate can be used to authenticate CA certificates.- Returns:
- true if the certificate can be used to authenticate CA certificates.
- Since:
- 0.2.0
-
isCardCertificatesAuthenticationAllowed
boolean isCardCertificatesAuthenticationAllowed()Indicates if the certificate can be used to authenticate card certificates.- Returns:
- true if the certificate can be used to authenticate card certificates.
- Since:
- 0.2.0
-