Package eu.europa.esig.dss.diagnostic
Class CertificateWrapper
- java.lang.Object
-
- eu.europa.esig.dss.diagnostic.AbstractTokenProxy
-
- eu.europa.esig.dss.diagnostic.CertificateWrapper
-
- All Implemented Interfaces:
TokenProxy
public class CertificateWrapper extends AbstractTokenProxy
-
-
Constructor Summary
Constructors Constructor Description CertificateWrapper(XmlCertificate certificate)
-
Method Summary
-
Methods inherited from class eu.europa.esig.dss.diagnostic.AbstractTokenProxy
equals, getCertificateChain, getDigestAlgorithm, getDigestMatchers, getEncryptionAlgorithm, getKeyLengthUsedToSignThisToken, getMaskGenerationFunction, getSigningCertificate, getSigningCertificatePublicKey, hashCode, isAttributePresent, isCertificateChainFromTrustedStore, isDigestValueMatch, isDigestValuePresent, isIssuerSerialMatch, isSignatureIntact, isSignatureValid, isTrustedChain
-
-
-
-
Constructor Detail
-
CertificateWrapper
public CertificateWrapper(XmlCertificate certificate)
-
-
Method Detail
-
getId
public String getId()
-
getCurrentBasicSignature
protected XmlBasicSignature getCurrentBasicSignature()
- Specified by:
getCurrentBasicSignaturein classAbstractTokenProxy
-
getCurrentCertificateChain
protected List<XmlChainItem> getCurrentCertificateChain()
- Specified by:
getCurrentCertificateChainin classAbstractTokenProxy
-
getCurrentSigningCertificate
protected XmlSigningCertificate getCurrentSigningCertificate()
- Specified by:
getCurrentSigningCertificatein classAbstractTokenProxy
-
isTrusted
public boolean isTrusted()
-
isSelfSigned
public boolean isSelfSigned()
-
getKeyUsages
public List<KeyUsageBit> getKeyUsages()
-
isRevocationDataAvailable
public boolean isRevocationDataAvailable()
-
getSources
public List<CertificateSourceType> getSources()
-
getCertificateRevocationData
public List<CertificateRevocationWrapper> getCertificateRevocationData()
-
isIdPkixOcspNoCheck
public boolean isIdPkixOcspNoCheck()
-
isIdKpOCSPSigning
public boolean isIdKpOCSPSigning()
-
getNotBefore
public Date getNotBefore()
-
getNotAfter
public Date getNotAfter()
-
getCertificateTSPServiceExpiredCertsRevocationInfo
public Date getCertificateTSPServiceExpiredCertsRevocationInfo()
-
getSerialNumber
public String getSerialNumber()
-
getCommonName
public String getCommonName()
-
getCountryName
public String getCountryName()
-
getGivenName
public String getGivenName()
-
getOrganizationName
public String getOrganizationName()
-
getOrganizationalUnit
public String getOrganizationalUnit()
-
getEmail
public String getEmail()
-
getLocality
public String getLocality()
-
getState
public String getState()
-
getSurname
public String getSurname()
-
getPseudo
public String getPseudo()
-
getDigestAlgoAndValue
public XmlDigestAlgoAndValue getDigestAlgoAndValue()
-
hasTrustedServices
public boolean hasTrustedServices()
-
getTrustServiceProviders
public List<XmlTrustedServiceProvider> getTrustServiceProviders()
-
getTrustedServices
public List<TrustedServiceWrapper> getTrustedServices()
-
getCertificateDN
public String getCertificateDN()
-
getCertificateIssuerDN
public String getCertificateIssuerDN()
-
getBinaries
public byte[] getBinaries()
- Specified by:
getBinariesin classAbstractTokenProxy
-
getReadableCertificateName
public String getReadableCertificateName()
-
-