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, thisUpdateFields inherited from class eu.europa.esig.dss.model.x509.Token
publicKeyOfTheSigner, signatureAlgorithm, signatureInvalidityReason, signatureValidity -
Constructor Summary
ConstructorsConstructorDescriptionCRLToken(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 eu.europa.esig.dss.enumerations.SignatureValiditycheckIsSignedBy(PublicKey publicKey) This method returns the DSS abbreviation of the CRLToken.Returns a source of embedded into a revocation token certificatesOpens InputStream of the CRL binariesReturns aCRLValiditybyte[]Returns issuerCertificateTokeneu.europa.esig.dss.enumerations.RevocationTypeReturns the Revocation Token type (CRL or OCSP)booleanisValid()Indicates if the token signature is intact and the signing certificate has cRLSign key usage bit set.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, setSourceURLMethods inherited from class eu.europa.esig.dss.model.x509.Token
getDigest, getDSSId, getDSSIdAsString, getPublicKeyOfTheSigner, getSignatureAlgorithm, getSignatureValidity, isSelfSigned, isSignedBy, isSignedBy, toString
-
Constructor Details
-
CRLToken
The constructor to be used with the certificate which is managed by the CRL and theCRLValidity.- Parameters:
certificateToken- theCertificateTokenwhich is managed by this CRL.crlValidity-CRLValiditycontaining the information about the validity of the CRL
-
-
Method Details
-
checkIsSignedBy
- Specified by:
checkIsSignedByin classToken
-
getCertificateSource
Description copied from class:RevocationTokenReturns a source of embedded into a revocation token certificates- Specified by:
getCertificateSourcein classRevocationToken<CRL>- Returns:
RevocationCertificateSource
-
getCrlValidity
Returns aCRLValidity- Returns:
CRLValidity
-
getIssuerX500Principal
- Specified by:
getIssuerX500Principalin classToken
-
getIssuerCertificateToken
Description copied from class:RevocationTokenReturns issuerCertificateToken- Specified by:
getIssuerCertificateTokenin classRevocationToken<CRL>- Returns:
- issuer
CertificateToken
-
getEncoded
public byte[] getEncoded()- Specified by:
getEncodedin classToken
-
getCRLStream
Opens InputStream of the CRL binaries- Returns:
InputStream
-
isValid
public boolean isValid()Indicates if the token signature is intact and the signing certificate has cRLSign key usage bit set.- Specified by:
isValidin classRevocationToken<CRL>- Returns:
trueorfalse
-
getRevocationType
public eu.europa.esig.dss.enumerations.RevocationType getRevocationType()Description copied from class:RevocationTokenReturns the Revocation Token type (CRL or OCSP)- Specified by:
getRevocationTypein classRevocationToken<CRL>- Returns:
RevocationTypeof the token
-
getAbbreviation
This method returns the DSS abbreviation of the CRLToken. It is used for debugging purpose.- Overrides:
getAbbreviationin classToken- Returns:
- the DSS abbreviation of the CRLToken
-
toString
-