blob: 5f23c787a0b467043d2e0f8bebe5b646050490fd (
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.ECPublicKeyParameters;
import org.bouncycastle.crypto.signers.ECDSASigner;
public class TlsECDSASigner extends TlsDSASigner {
public boolean isValidPublicKey(AsymmetricKeyParameter publicKey) {
return publicKey instanceof ECPublicKeyParameters;
}
protected DSA createDSAImpl() {
return new ECDSASigner();
}
}
|