Package com.tccc.kos.commons.util.keys
Class SimpleKeySet
java.lang.Object
com.tccc.kos.commons.util.keys.SimpleKeySet
- All Implemented Interfaces:
KeySet
KeySet that is manually created from key and cert.
- Version:
- 2022-07-02
-
Constructor Summary
ConstructorsConstructorDescriptionSimpleKeySet
(PrivateKey privateKey, CertPath certPath) Create a KeySet by specifying the key and cert. -
Method Summary
Modifier and TypeMethodDescriptionReturn the cert pathgetMode()
Get the mode of the keySetReturn the private keyMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.tccc.kos.commons.util.keys.KeySet
getDisplayAuthority
-
Constructor Details
-
SimpleKeySet
Create a KeySet by specifying the key and cert.- Parameters:
privateKey
- the private key to usecertPath
- the certPath to use
-
-
Method Details
-
getPrivateKey
Description copied from interface:KeySet
Return the private key- Specified by:
getPrivateKey
in interfaceKeySet
-
getCertPath
Description copied from interface:KeySet
Return the cert path- Specified by:
getCertPath
in interfaceKeySet
-
getMode
Description copied from interface:KeySet
Get the mode of the keySet
-