diff options
Diffstat (limited to 'src/main/java/org/bouncycastle/crypto/tls/TlsECDSASigner.java')
-rw-r--r-- | src/main/java/org/bouncycastle/crypto/tls/TlsECDSASigner.java | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/main/java/org/bouncycastle/crypto/tls/TlsECDSASigner.java b/src/main/java/org/bouncycastle/crypto/tls/TlsECDSASigner.java index 5f23c787..6809815c 100644 --- a/src/main/java/org/bouncycastle/crypto/tls/TlsECDSASigner.java +++ b/src/main/java/org/bouncycastle/crypto/tls/TlsECDSASigner.java @@ -5,13 +5,17 @@ import org.bouncycastle.crypto.params.AsymmetricKeyParameter; import org.bouncycastle.crypto.params.ECPublicKeyParameters; import org.bouncycastle.crypto.signers.ECDSASigner; -public class TlsECDSASigner extends TlsDSASigner { +public class TlsECDSASigner + extends TlsDSASigner +{ - public boolean isValidPublicKey(AsymmetricKeyParameter publicKey) { + public boolean isValidPublicKey(AsymmetricKeyParameter publicKey) + { return publicKey instanceof ECPublicKeyParameters; } - protected DSA createDSAImpl() { + protected DSA createDSAImpl() + { return new ECDSASigner(); } } |