Class CRLToken
java.lang.Object
eu.europa.esig.dss.model.x509.Token
eu.europa.esig.dss.spi.x509.revocation.RevocationToken<CRL>
eu.europa.esig.dss.spi.x509.revocation.crl.CRLToken
- All Implemented Interfaces:
Serializable
public class CRLToken extends RevocationToken<CRL>
This class represents a CRL and provides the information about its validity.
- See Also:
- Serialized Form
-
Field Summary
Fields inherited from class eu.europa.esig.dss.spi.x509.revocation.RevocationToken
archiveCutOff, certHashMatch, certHashPresent, expiredCertsOnCRL, externalOrigin, nextUpdate, productionDate, reason, relatedCertificate, revocationDate, revocationTokenKey, sourceURL, status, thisUpdate
Fields inherited from class eu.europa.esig.dss.model.x509.Token
publicKeyOfTheSigner, signatureAlgorithm, signatureInvalidityReason, signatureValidity
-
Constructor Summary
Constructors Constructor Description CRLToken(CertificateToken certificateToken, CRLValidity crlValidity)
The constructor to be used with the certificate which is managed by the CRL and theCRLValidity
. -
Method Summary
Modifier and Type Method Description protected eu.europa.esig.dss.enumerations.SignatureValidity
checkIsSignedBy(CertificateToken token)
String
getAbbreviation()
This method returns the DSS abbreviation of the CRLToken.RevocationCertificateSource
getCertificateSource()
Returns a source of embedded into a revocation token certificatesInputStream
getCRLStream()
CRLValidity
getCrlValidity()
byte[]
getEncoded()
CertificateToken
getIssuerCertificateToken()
Returns issuerCertificateToken
X500Principal
getIssuerX500Principal()
eu.europa.esig.dss.enumerations.RevocationType
getRevocationType()
Returns the Revocation Token type (CRL or OCSP)boolean
isValid()
Indicates if the token signature is intact and the signing certificate has cRLSign key usage bit set.String
toString(String indentStr)
Methods inherited from class eu.europa.esig.dss.spi.x509.revocation.RevocationToken
buildTokenIdentifier, equals, getArchiveCutOff, getCreationDate, getExpiredCertsOnCRL, getExternalOrigin, getNextUpdate, getProductionDate, getReason, getRelatedCertificateID, getRevocationDate, getRevocationTokenKey, getSourceURL, getStatus, getThisUpdate, hashCode, isCertHashMatch, isCertHashPresent, isInternal, setExternalOrigin, setRelatedCertificate, setRevocationTokenKey, setSourceURL
Methods inherited from class eu.europa.esig.dss.model.x509.Token
getDigest, getDSSId, getDSSIdAsString, getPublicKeyOfTheSigner, getSignatureAlgorithm, getSignatureValidity, isSelfSigned, isSignedBy, toString
-
Constructor Details
-
CRLToken
The constructor to be used with the certificate which is managed by the CRL and theCRLValidity
.- Parameters:
certificateToken
- theCertificateToken
which is managed by this CRL.crlValidity
-CRLValidity
containing the information about the validity of the CRL
-
-
Method Details
-
checkIsSignedBy
protected eu.europa.esig.dss.enumerations.SignatureValidity checkIsSignedBy(CertificateToken token)- Specified by:
checkIsSignedBy
in classToken
-
getCertificateSource
Description copied from class:RevocationToken
Returns a source of embedded into a revocation token certificates- Specified by:
getCertificateSource
in classRevocationToken<CRL>
- Returns:
RevocationCertificateSource
-
getCrlValidity
-
getIssuerX500Principal
- Specified by:
getIssuerX500Principal
in classToken
-
getIssuerCertificateToken
Description copied from class:RevocationToken
Returns issuerCertificateToken
- Specified by:
getIssuerCertificateToken
in classRevocationToken<CRL>
- Returns:
- issuer
CertificateToken
-
getEncoded
public byte[] getEncoded()- Specified by:
getEncoded
in classToken
-
getCRLStream
-
isValid
public boolean isValid()Indicates if the token signature is intact and the signing certificate has cRLSign key usage bit set.- Specified by:
isValid
in classRevocationToken<CRL>
- Returns:
true
orfalse
-
getRevocationType
public eu.europa.esig.dss.enumerations.RevocationType getRevocationType()Description copied from class:RevocationToken
Returns the Revocation Token type (CRL or OCSP)- Specified by:
getRevocationType
in classRevocationToken<CRL>
- Returns:
RevocationType
of the token
-
getAbbreviation
This method returns the DSS abbreviation of the CRLToken. It is used for debugging purpose.- Overrides:
getAbbreviation
in classToken
- Returns:
- the DSS abbreviation of the CRLToken
-
toString
-