public abstract class ECDSAKeyAlgorithm extends KeyAlgorithm<ECPublicKey,ECPrivateKey>
Modifier and Type | Class and Description |
---|---|
static class |
ECDSAKeyAlgorithm.ECDSASha2Nistp256 |
static class |
ECDSAKeyAlgorithm.ECDSASha2Nistp384 |
static class |
ECDSAKeyAlgorithm.ECDSASha2Nistp521 |
Modifier and Type | Method and Description |
---|---|
ECPublicKey |
decodePublicKey(byte[] key) |
byte[] |
decodeSignature(byte[] encodedSignature) |
byte[] |
encodePublicKey(ECPublicKey key) |
byte[] |
encodeSignature(byte[] sig) |
boolean |
supportsKey(PrivateKey originalKey) |
generateSignature, getCertificateDecoders, getKeyFormat, verifySignature
public ECPublicKey decodePublicKey(byte[] key) throws IOException
decodePublicKey
in class KeyAlgorithm<ECPublicKey,ECPrivateKey>
IOException
public byte[] encodePublicKey(ECPublicKey key) throws IOException
encodePublicKey
in class KeyAlgorithm<ECPublicKey,ECPrivateKey>
IOException
public byte[] decodeSignature(byte[] encodedSignature) throws IOException
decodeSignature
in class KeyAlgorithm<ECPublicKey,ECPrivateKey>
IOException
public byte[] encodeSignature(byte[] sig) throws IOException
encodeSignature
in class KeyAlgorithm<ECPublicKey,ECPrivateKey>
IOException
public boolean supportsKey(PrivateKey originalKey)
supportsKey
in class KeyAlgorithm<ECPublicKey,ECPrivateKey>
Copyright © 2020. All rights reserved.