public class SM9SigPrivateKeyParameters extends AsymmetricKeyParameter implements javax.security.auth.Destroyable
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Destroy this object, dropping its reference to the private point ds and
zeroizing the identity.
|
static SM9SigPrivateKeyParameters |
fromEncoded(byte[] enc,
SM9SigMasterPublicKeyParameters masterPublicKey,
byte[] identity) |
byte[] |
getEncoded()
The user's signature private key point ds of G1 in uncompressed form
(0x04 || x || y, 65 bytes).
|
byte[] |
getIdentity() |
SM9SigMasterPublicKeyParameters |
getMasterPublicKey() |
ECPoint |
getPrivatePoint() |
boolean |
isDestroyed() |
isPrivatepublic ECPoint getPrivatePoint()
public SM9SigMasterPublicKeyParameters getMasterPublicKey()
public byte[] getIdentity()
public byte[] getEncoded()
fromEncoded(byte[], org.bouncycastle.crypto.params.SM9SigMasterPublicKeyParameters, byte[]) to rebuild
a usable key.public static SM9SigPrivateKeyParameters fromEncoded(byte[] enc, SM9SigMasterPublicKeyParameters masterPublicKey, byte[] identity)
public void destroy()
As the point's coordinates are immutable they cannot be zeroized in place;
destruction drops the reference and marks the key destroyed, after which
getPrivatePoint(), getEncoded() and getIdentity()
throw IllegalStateException. The master public key remains available.
destroy in interface javax.security.auth.Destroyablepublic boolean isDestroyed()
isDestroyed in interface javax.security.auth.Destroyable