Bouncy Castle Cryptography Library 1.87

org.bouncycastle.jcajce.interfaces
Interface SM9EncUserPublicKey

All Superinterfaces:
java.security.Key, java.security.PublicKey, java.io.Serializable

public interface SM9EncUserPublicKey
extends java.security.PublicKey

Interface for an SM9 (GM/T 0044.4) recipient's encryption public key: an encryption master public key bound to a recipient identity. Obtained from SM9EncMasterPublicKey.getUserPublicKey(byte[]).

Usage warning: an identity's key should be used for or for the SM9 KEM, but not for both. Which of the two an identity's key is for is the KGC's to fix, by publishing a separate hid for each.


Field Summary
 
Fields inherited from interface java.security.PublicKey
serialVersionUID
 
Method Summary
 byte[] getIdentity()
          The identity this key was derived for.
 SM9EncMasterPublicKey getMasterPublicKey()
          The encryption master public key this key was derived from.
 
Methods inherited from interface java.security.Key
getAlgorithm, getEncoded, getFormat
 

Method Detail

getIdentity

public byte[] getIdentity()
The identity this key was derived for.

Returns:
the recipient's identity.

getMasterPublicKey

public SM9EncMasterPublicKey getMasterPublicKey()
The encryption master public key this key was derived from.

Returns:
the encryption master public key.

Bouncy Castle Cryptography Library 1.87