Class OCSPToken
- 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.ocsp.OCSPToken
-
- All Implemented Interfaces:
Serializable
public class OCSPToken extends RevocationToken
OCSP Signed Token which encapsulate BasicOCSPResp (BC).- 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 OCSPToken()
-
Method Summary
Modifier and Type Method Description protected booleancheckIsSignedBy(CertificateToken candidate)StringgetAbbreviation()This method returns the DSS abbreviation of the token.org.bouncycastle.cert.ocsp.BasicOCSPRespgetBasicOCSPResp()org.bouncycastle.cert.ocsp.CertificateIDgetCertId()byte[]getEncoded()Returns the encoded form of the wrapped token.X500PrincipalgetIssuerX500Principal()Returns theX500Principalof the certificate which was used to sign this token.OCSPRespStatusgetResponseStatus()voidinitInfo()Initialize inner attributesbooleanisNonceMatch()booleanisUseNonce()booleanisValid()Indicates if the token signature is intact.voidsetBasicOCSPResp(org.bouncycastle.cert.ocsp.BasicOCSPResp basicOCSPResp)voidsetCertId(org.bouncycastle.cert.ocsp.CertificateID certId)voidsetIssuerX500Principal(X500Principal issuerX500Principal)voidsetNonceMatch(boolean nonceMatch)voidsetResponseStatus(OCSPRespStatus responseStatus)voidsetUseNonce(boolean useNonce)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
-
-
-
-
Method Detail
-
initInfo
public void initInfo()
Description copied from class:RevocationTokenInitialize inner attributes- Specified by:
initInfoin classRevocationToken
-
checkIsSignedBy
protected boolean checkIsSignedBy(CertificateToken candidate)
- Specified by:
checkIsSignedByin classToken
-
getResponseStatus
public OCSPRespStatus getResponseStatus()
-
setResponseStatus
public void setResponseStatus(OCSPRespStatus responseStatus)
-
isUseNonce
public boolean isUseNonce()
-
setUseNonce
public void setUseNonce(boolean useNonce)
-
isNonceMatch
public boolean isNonceMatch()
-
setNonceMatch
public void setNonceMatch(boolean nonceMatch)
-
getBasicOCSPResp
public org.bouncycastle.cert.ocsp.BasicOCSPResp getBasicOCSPResp()
-
setBasicOCSPResp
public void setBasicOCSPResp(org.bouncycastle.cert.ocsp.BasicOCSPResp basicOCSPResp)
-
getCertId
public org.bouncycastle.cert.ocsp.CertificateID getCertId()
-
setCertId
public void setCertId(org.bouncycastle.cert.ocsp.CertificateID certId)
-
isValid
public boolean isValid()
Indicates if the token signature is intact.- Specified by:
isValidin classRevocationToken- Returns:
trueorfalse
-
getAbbreviation
public String getAbbreviation()
Description copied from class:TokenThis method returns the DSS abbreviation of the token. It is used for debugging purpose.- Overrides:
getAbbreviationin classToken- Returns:
- an abbreviation for the certificate
-
toString
public String toString(String indentStr)
Description copied from class:TokenReturns a string representation of the token.
-
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
-
setIssuerX500Principal
public void setIssuerX500Principal(X500Principal issuerX500Principal)
-
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
-
-