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
ConstructorsConstructorDescriptionKSPrivateKeyEntry(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:DSSPrivateKeyEntryRetrieve the signing certificate- Specified by:
getCertificatein interfaceDSSPrivateKeyEntry- Returns:
- the certificate
-
getCertificateChain
Description copied from interface:DSSPrivateKeyEntryRetrieve the certificate chain linked- Specified by:
getCertificateChainin interfaceDSSPrivateKeyEntry- Returns:
- the chain of certificates
-
getPrivateKey
Description copied from interface:DSSPrivateKeyAccessEntryGets the private key- Specified by:
getPrivateKeyin interfaceDSSPrivateKeyAccessEntry- Returns:
- the private key
-
getEncryptionAlgorithm
Description copied from interface:DSSPrivateKeyEntryGet the EncryptionAlgorithm corresponding to the PrivateKey- Specified by:
getEncryptionAlgorithmin interfaceDSSPrivateKeyEntry- Returns:
- the EncryptionAlgorithm (RSA, ECDSA,...)
-