public class JcaTlsEdDSAVerifier extends java.lang.Object implements TlsVerifier
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
algorithmName |
protected short |
algorithmType |
protected JcaTlsCrypto |
crypto |
protected java.security.PublicKey |
publicKey |
| Constructor and Description |
|---|
JcaTlsEdDSAVerifier(JcaTlsCrypto crypto,
java.security.PublicKey publicKey,
short algorithmType,
java.lang.String algorithmName) |
| Modifier and Type | Method and Description |
|---|---|
TlsStreamVerifier |
getStreamVerifier(DigitallySigned signature) |
boolean |
verifyRawSignature(DigitallySigned signature,
byte[] hash)
Return true if the passed in signature and hash represent a real signature.
|
protected final JcaTlsCrypto crypto
protected final java.security.PublicKey publicKey
protected final short algorithmType
protected final java.lang.String algorithmName
public JcaTlsEdDSAVerifier(JcaTlsCrypto crypto, java.security.PublicKey publicKey, short algorithmType, java.lang.String algorithmName)
public boolean verifyRawSignature(DigitallySigned signature, byte[] hash) throws java.io.IOException
TlsVerifierverifyRawSignature in interface TlsVerifiersignature - the signature object containing the signature to be verified.hash - the hash calculated for the signature.java.io.IOException - in case of an exception verifying signature.public TlsStreamVerifier getStreamVerifier(DigitallySigned signature) throws java.io.IOException
getStreamVerifier in interface TlsVerifierjava.io.IOException