blob: e4b9012b70450b2d60c016754206922adf401f2e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
package org.bouncycastle.crypto.tls;
import org.bouncycastle.crypto.DSA;
import org.bouncycastle.crypto.params.AsymmetricKeyParameter;
import org.bouncycastle.crypto.params.DSAPublicKeyParameters;
import org.bouncycastle.crypto.signers.DSASigner;
public class TlsDSSSigner extends TlsDSASigner {
public boolean isValidPublicKey(AsymmetricKeyParameter publicKey) {
return publicKey instanceof DSAPublicKeyParameters;
}
protected DSA createDSAImpl() {
return new DSASigner();
}
}
|