Package eu.europa.esig.dss.diagnostic
Class AbstractTokenProxy
java.lang.Object
eu.europa.esig.dss.diagnostic.AbstractTokenProxy
- All Implemented Interfaces:
TokenProxy
- Direct Known Subclasses:
CertificateWrapper
,RevocationWrapper
,SignatureWrapper
,TimestampWrapper
public abstract class AbstractTokenProxy extends Object implements TokenProxy
-
Constructor Summary
Constructors Constructor Description AbstractTokenProxy()
-
Method Summary
Modifier and Type Method Description boolean
equals(Object obj)
abstract byte[]
getBinaries()
List<CertificateWrapper>
getCertificateChain()
protected abstract XmlBasicSignature
getCurrentBasicSignature()
protected abstract List<XmlChainItem>
getCurrentCertificateChain()
protected abstract XmlSigningCertificate
getCurrentSigningCertificate()
DigestAlgorithm
getDigestAlgorithm()
List<XmlDigestMatcher>
getDigestMatchers()
EncryptionAlgorithm
getEncryptionAlgorithm()
String
getKeyLengthUsedToSignThisToken()
MaskGenerationFunction
getMaskGenerationFunction()
CertificateWrapper
getSigningCertificate()
byte[]
getSigningCertificatePublicKey()
int
hashCode()
boolean
isAttributePresent()
boolean
isCertificateChainFromTrustedStore()
boolean
isDigestValueMatch()
boolean
isDigestValuePresent()
boolean
isIssuerSerialMatch()
boolean
isSignatureIntact()
boolean
isSignatureValid()
boolean
isTrustedChain()
String
toString()
-
Constructor Details
-
AbstractTokenProxy
public AbstractTokenProxy()
-
-
Method Details
-
getCurrentBasicSignature
-
getCurrentCertificateChain
-
getCurrentSigningCertificate
-
getDigestMatchers
- Specified by:
getDigestMatchers
in interfaceTokenProxy
-
getCertificateChain
- Specified by:
getCertificateChain
in interfaceTokenProxy
-
isSignatureIntact
public boolean isSignatureIntact()- Specified by:
isSignatureIntact
in interfaceTokenProxy
-
isSignatureValid
public boolean isSignatureValid()- Specified by:
isSignatureValid
in interfaceTokenProxy
-
getEncryptionAlgorithm
- Specified by:
getEncryptionAlgorithm
in interfaceTokenProxy
-
getDigestAlgorithm
- Specified by:
getDigestAlgorithm
in interfaceTokenProxy
-
getMaskGenerationFunction
- Specified by:
getMaskGenerationFunction
in interfaceTokenProxy
-
getKeyLengthUsedToSignThisToken
- Specified by:
getKeyLengthUsedToSignThisToken
in interfaceTokenProxy
-
isIssuerSerialMatch
public boolean isIssuerSerialMatch()- Specified by:
isIssuerSerialMatch
in interfaceTokenProxy
-
isAttributePresent
public boolean isAttributePresent()- Specified by:
isAttributePresent
in interfaceTokenProxy
-
isDigestValueMatch
public boolean isDigestValueMatch()- Specified by:
isDigestValueMatch
in interfaceTokenProxy
-
isDigestValuePresent
public boolean isDigestValuePresent()- Specified by:
isDigestValuePresent
in interfaceTokenProxy
-
getSigningCertificate
- Specified by:
getSigningCertificate
in interfaceTokenProxy
-
getSigningCertificatePublicKey
public byte[] getSigningCertificatePublicKey()- Specified by:
getSigningCertificatePublicKey
in interfaceTokenProxy
-
isTrustedChain
public boolean isTrustedChain()- Specified by:
isTrustedChain
in interfaceTokenProxy
-
isCertificateChainFromTrustedStore
public boolean isCertificateChainFromTrustedStore() -
getBinaries
public abstract byte[] getBinaries() -
toString
-
hashCode
public int hashCode() -
equals
-