org.bouncycastle.jcajce.interfaces
Interface SM9EncUserPrivateKey
- All Superinterfaces:
- java.security.Key, java.security.PrivateKey, java.io.Serializable
- public interface SM9EncUserPrivateKey
- extends java.security.PrivateKey
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 or for
the 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.
| Fields inherited from interface java.security.PrivateKey |
serialVersionUID |
|
Method Summary |
byte[] |
getIdentity()
The identity this key was derived for. |
| Methods inherited from interface java.security.Key |
getAlgorithm, getEncoded, getFormat |
getIdentity
public byte[] getIdentity()
- The identity this key was derived for.
- Returns:
- the user's identity.