Package eu.europa.esig.dss.token
Class KSPrivateKeyEntry
java.lang.Object
eu.europa.esig.dss.token.KSPrivateKeyEntry
- All Implemented Interfaces:
DSSPrivateKeyAccessEntry
,DSSPrivateKeyEntry
Wrapper of a PrivateKeyEntry coming from a KeyStore.
-
Constructor Summary
ConstructorDescriptionKSPrivateKeyEntry
(String alias, KeyStore.PrivateKeyEntry privateKeyEntry) The default constructor for KSPrivateKeyEntry. -
Method Summary
Modifier and TypeMethodDescriptiongetAlias()
Get the entry aliasRetrieve the signing certificateRetrieve the certificate chain linkedGet the EncryptionAlgorithm corresponding to the PrivateKeyGets the private key
-
Constructor Details
-
KSPrivateKeyEntry
The default constructor for KSPrivateKeyEntry.- Parameters:
alias
- the given aliasprivateKeyEntry
- the keystore private key entry
-
-
Method Details
-
getAlias
-
getCertificate
Description copied from interface:DSSPrivateKeyEntry
Retrieve the signing certificate- Specified by:
getCertificate
in interfaceDSSPrivateKeyEntry
- Returns:
- the certificate
-
getCertificateChain
Description copied from interface:DSSPrivateKeyEntry
Retrieve the certificate chain linked- Specified by:
getCertificateChain
in interfaceDSSPrivateKeyEntry
- Returns:
- the chain of certificates
-
getPrivateKey
Description copied from interface:DSSPrivateKeyAccessEntry
Gets the private key- Specified by:
getPrivateKey
in interfaceDSSPrivateKeyAccessEntry
- Returns:
- the private key
-
getEncryptionAlgorithm
Description copied from interface:DSSPrivateKeyEntry
Get the EncryptionAlgorithm corresponding to the PrivateKey- Specified by:
getEncryptionAlgorithm
in interfaceDSSPrivateKeyEntry
- Returns:
- the EncryptionAlgorithm (RSA, ECDSA,...)
-