Class CRLToken
java.lang.Object
eu.europa.esig.dss.spi.x509.revocation.RevocationToken<eu.europa.esig.dss.model.x509.revocation.crl.CRL>
eu.europa.esig.dss.spi.x509.revocation.crl.CRLToken
- All Implemented Interfaces:
Serializable
This class represents a CRL and provides the information about its validity.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected PublicKeyprotected eu.europa.esig.dss.enumerations.SignatureAlgorithmprotected Stringprotected eu.europa.esig.dss.enumerations.SignatureValidityFields inherited from class RevocationToken
archiveCutOff, certHashMatch, certHashPresent, crlNumber, expiredCertsOnCRL, externalOrigin, nextUpdate, productionDate, reason, relatedCertificate, revocationDate, sourceURL, status, thisUpdate -
Constructor Summary
ConstructorsConstructorDescriptionCRLToken(eu.europa.esig.dss.model.x509.CertificateToken certificateToken, eu.europa.esig.dss.crl.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.List<eu.europa.esig.dss.model.x509.CertificateToken> Returns a collection of embedded certificates.Returns a source of embedded into a revocation token certificatesOpens InputStream of the CRL binarieseu.europa.esig.dss.crl.CRLValidityReturns aCRLValiditybyte[]getDigest(eu.europa.esig.dss.enumerations.DigestAlgorithm arg0) eu.europa.esig.dss.model.identifier.TokenIdentifiergetDSSId()byte[]eu.europa.esig.dss.model.x509.CertificateTokenReturns issuerCertificateTokeneu.europa.esig.dss.model.identifier.EntityIdentifiereu.europa.esig.dss.enumerations.RevocationTypeReturns the Revocation Token type (CRL or OCSP)eu.europa.esig.dss.enumerations.SignatureAlgorithmeu.europa.esig.dss.enumerations.SignatureValiditybooleanbooleanbooleanisSignedBy(eu.europa.esig.dss.model.x509.CertificateToken arg0) booleanisSignedBy(PublicKey arg0) booleanisValid()Indicates if the token signature is intact and the signing certificate has cRLSign key usage bit set.toString()Methods inherited from class RevocationToken
buildTokenIdentifier, equals, getArchiveCutOff, getCreationDate, getCRLNumber, getExpiredCertsOnCRL, getExternalOrigin, getNextUpdate, getProductionDate, getReason, getRelatedCertificate, getRelatedCertificateId, getRevocationDate, getSourceURL, getStatus, getThisUpdate, hashCode, isCertHashMatch, isCertHashPresent, isInternal, setExternalOrigin, setSourceURL
-
Field Details
-
publicKeyOfTheSigner
-
signatureValidity
protected eu.europa.esig.dss.enumerations.SignatureValidity signatureValidity -
signatureInvalidityReason
-
signatureAlgorithm
protected eu.europa.esig.dss.enumerations.SignatureAlgorithm signatureAlgorithm
-
-
Constructor Details
-
CRLToken
public CRLToken(eu.europa.esig.dss.model.x509.CertificateToken certificateToken, eu.europa.esig.dss.crl.CRLValidity crlValidity) 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
-
getCertificateSource
Description copied from class:RevocationTokenReturns a source of embedded into a revocation token certificates- Specified by:
getCertificateSourcein classRevocationToken<eu.europa.esig.dss.model.x509.revocation.crl.CRL>- Returns:
RevocationCertificateSource
-
getCertificates
Description copied from class:RevocationTokenReturns a collection of embedded certificates. NOTE: returns empty collection for CRL.- Specified by:
getCertificatesin classRevocationToken<eu.europa.esig.dss.model.x509.revocation.crl.CRL>- Returns:
- a list of
CertificateTokens
-
getCrlValidity
public eu.europa.esig.dss.crl.CRLValidity getCrlValidity()Returns aCRLValidity- Returns:
CRLValidity
-
getIssuerX500Principal
-
getIssuerCertificateToken
public eu.europa.esig.dss.model.x509.CertificateToken getIssuerCertificateToken()Description copied from class:RevocationTokenReturns issuerCertificateToken- Specified by:
getIssuerCertificateTokenin classRevocationToken<eu.europa.esig.dss.model.x509.revocation.crl.CRL>- Returns:
- issuer
CertificateToken
-
getEncoded
public byte[] getEncoded() -
getCRLStream
-
isValid
public boolean isValid()Indicates if the token signature is intact and the signing certificate has cRLSign key usage bit set.- 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<eu.europa.esig.dss.model.x509.revocation.crl.CRL>- Returns:
RevocationTypeof the token
-
getAbbreviation
This method returns the DSS abbreviation of the CRLToken. It is used for debugging purpose.- Returns:
- the DSS abbreviation of the CRLToken
-
toString
-
isSelfSigned
public boolean isSelfSigned() -
getDSSId
public eu.europa.esig.dss.model.identifier.TokenIdentifier getDSSId() -
getDSSIdAsString
-
isSignedBy
public boolean isSignedBy(eu.europa.esig.dss.model.x509.CertificateToken arg0) -
isSignedBy
-
getIssuerEntityKey
public eu.europa.esig.dss.model.identifier.EntityIdentifier getIssuerEntityKey() -
getSignatureAlgorithm
public eu.europa.esig.dss.enumerations.SignatureAlgorithm getSignatureAlgorithm() -
isSignatureIntact
public boolean isSignatureIntact() -
getSignatureValidity
public eu.europa.esig.dss.enumerations.SignatureValidity getSignatureValidity() -
getInvalidityReason
-
getPublicKeyOfTheSigner
-
toString
-
getDigest
public byte[] getDigest(eu.europa.esig.dss.enumerations.DigestAlgorithm arg0)
-