public final class SM2SignatureParameterSpec extends Object implements AlgorithmParameterSpec
| Constructor and Description |
|---|
SM2SignatureParameterSpec(byte[] id,
ECPublicKey publicKey)
Create a new
SM2SignatureParameterSpec with ID and public key. |
SM2SignatureParameterSpec(ECPublicKey publicKey)
Create a new
SM2SignatureParameterSpec with public key. |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getId()
Returns the ID.
|
ECPublicKey |
getPublicKey()
Returns the public key.
|
public SM2SignatureParameterSpec(byte[] id,
ECPublicKey publicKey)
SM2SignatureParameterSpec with ID and public key.id - the ID. it must not longer than 8192-bytes.publicKey - the SM2 public key.NullPointerException - if publicKey is null.public SM2SignatureParameterSpec(ECPublicKey publicKey)
SM2SignatureParameterSpec with public key.
It just uses the default ID, exactly 1234567812345678.publicKey - the SM2 public key.NullPointerException - if publicKey is null.public byte[] getId()
public ECPublicKey getPublicKey()
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2025, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.