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