Package eu.europa.esig.dss.token
Interface DSSPrivateKeyEntry
- All Known Implementing Classes:
KSPrivateKeyEntry
public interface DSSPrivateKeyEntry
Interface for a PrivateKey.
-
Method Summary
Modifier and TypeMethodDescriptionRetrieve the signing certificateRetrieve the certificate chain linkedGet the EncryptionAlgorithm corresponding to the PrivateKey
-
Method Details
-
getCertificate
CertificateToken getCertificate()Retrieve the signing certificate- Returns:
- the certificate
-
getCertificateChain
CertificateToken[] getCertificateChain()Retrieve the certificate chain linked- Returns:
- the chain of certificates
-
getEncryptionAlgorithm
Get the EncryptionAlgorithm corresponding to the PrivateKey- Returns:
- the EncryptionAlgorithm (RSA, ECDSA,...)
- Throws:
DSSException
- if the encryption algorithm cannot be detected
-