Class CRLToken
- java.lang.Object
-
- eu.europa.esig.dss.model.x509.Token
-
- eu.europa.esig.dss.spi.x509.revocation.RevocationToken
-
- eu.europa.esig.dss.spi.x509.revocation.crl.CRLToken
-
- All Implemented Interfaces:
Serializable
public class CRLToken extends RevocationToken
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, available, certHashMatch, certHashPresent, expiredCertsOnCRL, nextUpdate, productionDate, reason, relatedCertificate, revocationDate, revocationTokenKey, revocationType, sourceURL, status, thisUpdate
-
Fields inherited from class eu.europa.esig.dss.model.x509.Token
publicKeyOfTheSigner, signatureAlgorithm, signatureInvalidityReason, signatureValid
-
-
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 booleancheckIsSignedBy(CertificateToken token)StringgetAbbreviation()This method returns the DSS abbreviation of the CRLToken.InputStreamgetCRLStream()CRLValiditygetCrlValidity()byte[]getEncoded()Returns the encoded form of the wrapped token.X500PrincipalgetIssuerX500Principal()Returns theX500Principalof the certificate which was used to sign this token.voidinitInfo()Initialize inner attributesbooleanisValid()Indicates if the token signature is intact and the signing certificate has cRLSign key usage bit set.StringtoString(String indentStr)Returns a string representation of the token.-
Methods inherited from class eu.europa.esig.dss.spi.x509.revocation.RevocationToken
equals, getArchiveCutOff, getCreationDate, getDSSIdAsString, getExpiredCertsOnCRL, getFirstOrigin, getNextUpdate, getOrigins, getProductionDate, getReason, getRelatedCertificateID, getRevocationDate, getRevocationTokenKey, getRevocationType, getSourceURL, getStatus, getThisUpdate, hashCode, isAvailable, isCertHashMatch, isCertHashPresent, setAvailable, setOrigins, setRelatedCertificate, setRevocationTokenKey, setSourceURL
-
Methods inherited from class eu.europa.esig.dss.model.x509.Token
getDigest, getDSSId, getPublicKeyOfTheSigner, getSignatureAlgorithm, isSelfSigned, isSignatureValid, isSignedBy, toString
-
-
-
-
Constructor Detail
-
CRLToken
public CRLToken(CertificateToken certificateToken, 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 Detail
-
initInfo
public void initInfo()
Description copied from class:RevocationTokenInitialize inner attributes- Specified by:
initInfoin classRevocationToken
-
checkIsSignedBy
protected boolean checkIsSignedBy(CertificateToken token)
- Specified by:
checkIsSignedByin classToken
-
getCrlValidity
public CRLValidity getCrlValidity()
-
getIssuerX500Principal
public X500Principal getIssuerX500Principal()
Description copied from class:TokenReturns theX500Principalof the certificate which was used to sign this token.- Specified by:
getIssuerX500Principalin classToken- Returns:
- the issuer's
X500Principal
-
getAbbreviation
public String 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
-
getEncoded
public byte[] getEncoded()
Description copied from class:TokenReturns the encoded form of the wrapped token.- Specified by:
getEncodedin classToken- Returns:
- the encoded form of the wrapped token
-
getCRLStream
public InputStream getCRLStream()
-
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- Returns:
trueorfalse
-
-