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:
IdentifierBasedObject
,Serializable
This class represents a CRL and provides the information about its validity.
- See Also:
-
Field Summary
Fields inherited from class eu.europa.esig.dss.spi.x509.revocation.RevocationToken
archiveCutOff, certHashMatch, certHashPresent, expiredCertsOnCRL, externalOrigin, nextUpdate, productionDate, reason, relatedCertificate, revocationDate, sourceURL, status, thisUpdate
Fields inherited from class eu.europa.esig.dss.model.x509.Token
publicKeyOfTheSigner, signatureAlgorithm, signatureInvalidityReason, signatureValidity
-
Constructor Summary
ConstructorDescriptionCRLToken
(CertificateToken certificateToken, CRLValidity crlValidity) The constructor to be used with the certificate which is managed by the CRL and theCRLValidity
. -
Method Summary
Modifier and TypeMethodDescriptionprotected SignatureValidity
checkIsSignedBy
(PublicKey publicKey) Verifies if the current token has been signed by the specified publicKeyThis method returns the DSS abbreviation of the CRLToken.Returns a source of embedded into a revocation token certificatesOpens InputStream of the CRL binariesReturns aCRLValidity
byte[]
Returns the encoded form of the wrapped token.Returns issuerCertificateToken
Returns theX500Principal
of the certificate which was used to sign this token.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.Returns a string representation of the token.Methods inherited from class eu.europa.esig.dss.spi.x509.revocation.RevocationToken
buildTokenIdentifier, equals, getArchiveCutOff, getCreationDate, getExpiredCertsOnCRL, getExternalOrigin, getNextUpdate, getProductionDate, getReason, getRelatedCertificate, getRelatedCertificateId, getRevocationDate, getSourceURL, getStatus, getThisUpdate, hashCode, isCertHashMatch, isCertHashPresent, isInternal, setExternalOrigin, setSourceURL
Methods inherited from class eu.europa.esig.dss.model.x509.Token
getDigest, getDSSId, getDSSIdAsString, getInvalidityReason, getPublicKeyOfTheSigner, getSignatureAlgorithm, getSignatureValidity, isSelfSigned, isSignatureIntact, isSignedBy, 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
Description copied from class:Token
Verifies if the current token has been signed by the specified publicKey- Specified by:
checkIsSignedBy
in classToken
- Parameters:
publicKey
-PublicKey
of a signing candidate- Returns:
SignatureValidity
-
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
Description copied from class:Token
Returns theX500Principal
of the certificate which was used to sign this token.- Specified by:
getIssuerX500Principal
in classToken
- Returns:
- the issuer's
X500Principal
-
getIssuerCertificateToken
Description copied from class:RevocationToken
Returns issuerCertificateToken
- Specified by:
getIssuerCertificateToken
in classRevocationToken<CRL>
- Returns:
- issuer
CertificateToken
-
getEncoded
public byte[] getEncoded()Description copied from class:Token
Returns the encoded form of the wrapped token.- Specified by:
getEncoded
in classToken
- Returns:
- the encoded form of the wrapped token
-
getCRLStream
-
isValid
-
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
-