public class Sign extends Object
| 构造器和说明 |
|---|
Sign(String provider,
String algorithm,
PrivateKey privateKey,
PublicKey publicKey) |
| 限定符和类型 | 方法和说明 |
|---|---|
Signature |
getSignSignature() |
Signature |
getVerifySignature() |
static Sign |
of(SignAlgorithm algorithm) |
static Sign |
of(SignAlgorithm algorithm,
KeyPair keyPair) |
static Sign |
of(SignAlgorithm algorithm,
PrivateKey privateKey,
PublicKey publicKey) |
static Sign |
of(String algorithm) |
static Sign |
of(String algorithm,
KeyPair keyPair) |
static Sign |
of(String algorithm,
PrivateKey privateKey,
PublicKey publicKey) |
static Sign |
of(String provider,
SignAlgorithm algorithm) |
static Sign |
of(String provider,
SignAlgorithm algorithm,
KeyPair keyPair) |
static Sign |
of(String provider,
SignAlgorithm algorithm,
PrivateKey privateKey,
PublicKey publicKey) |
static Sign |
of(String provider,
String algorithm) |
static Sign |
of(String provider,
String algorithm,
KeyPair keyPair) |
static Sign |
of(String provider,
String algorithm,
PrivateKey privateKey,
PublicKey publicKey) |
byte[] |
sign() |
byte[] |
sign(byte[] data) |
Sign |
signUpdate(byte[] data) |
boolean |
verify(byte[] signature) |
boolean |
verify(byte[] data,
byte[] signature) |
Sign |
verifyUpdate(byte[] data) |
public Sign(String provider, String algorithm, PrivateKey privateKey, PublicKey publicKey)
public static Sign of(String provider, String algorithm, PrivateKey privateKey, PublicKey publicKey)
public static Sign of(String algorithm, PrivateKey privateKey, PublicKey publicKey)
public static Sign of(String provider, SignAlgorithm algorithm, PrivateKey privateKey, PublicKey publicKey)
public static Sign of(String provider, SignAlgorithm algorithm, KeyPair keyPair)
public static Sign of(String provider, SignAlgorithm algorithm)
public static Sign of(SignAlgorithm algorithm, PrivateKey privateKey, PublicKey publicKey)
public static Sign of(SignAlgorithm algorithm, KeyPair keyPair)
public static Sign of(SignAlgorithm algorithm)
public Sign signUpdate(byte[] data)
public byte[] sign(byte[] data)
public byte[] sign()
public Sign verifyUpdate(byte[] data)
public boolean verify(byte[] data,
byte[] signature)
public boolean verify(byte[] signature)
public Signature getSignSignature()
public Signature getVerifySignature()
Copyright © 2025 fossc. All rights reserved.