Bouncy Castle Cryptography Library 1.87

org.bouncycastle.jcajce.interfaces
Interface SM9SigMasterPublicKey

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

public interface SM9SigMasterPublicKey
extends java.security.PublicKey

Interface for an SM9 (GM/T 0044) signature master public key, the published root of the identity-based scheme.


Field Summary
 
Fields inherited from interface java.security.PublicKey
serialVersionUID
 
Method Summary
 java.security.PublicKey getUserPublicKey(byte[] identity)
          Return the public key of the user identified by : the key a signature from that user verifies against.
 
Methods inherited from interface java.security.Key
getAlgorithm, getEncoded, getFormat
 

Method Detail

getUserPublicKey

public java.security.PublicKey getUserPublicKey(byte[] identity)
Return the public key of the user identified by : the key a signature from that user verifies against. It is derived from the master public key and the identity alone, so any verifier holding the published master public key can construct it - no certificate or KGC interaction is needed.

The key returned is always an SM9SigUserPublicKey, which gives back the identity and the master public key it was formed from, and a caller may rely on the cast; the declared type stays so that code compiled against it keeps linking.

Parameters:
identity - the user's identity.
Returns:
the user's public key, an SM9SigUserPublicKey.

Bouncy Castle Cryptography Library 1.87