Interface SM9EncUserPrivateKey
- All Superinterfaces:
AsymmetricKey, DEREncodablePREVIEW, Destroyable, Key, PrivateKey, Serializable
Interface for a user's SM9 (GM/T 0044.4) encryption (KEM / decryption) private key (de),
derived by the KGC from the encryption master private key and the user's identity.
Usage warning: one identity's key should be used for Cipher.SM9 or for
the SM9 KEM (KeyGenerator.SM9-KEM, KEM.SM9-KEM), but not for both. A
deployment needing both has its KGC publish a separate hid for each function, as it
already does for the key exchange, so that the two keys are distinct.
-
Field Summary
Fields inherited from interface PrivateKey
serialVersionUID -
Method Summary
Methods inherited from interface AsymmetricKey
getParamsMethods inherited from interface Destroyable
destroy, isDestroyedMethods inherited from interface Key
getAlgorithm, getEncoded, getFormat
-
Method Details
-
getIdentity
byte[] getIdentity()The identity this key was derived for.- Returns:
- the user's identity.
-