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