Example usage for org.bouncycastle.jce.provider X509CertificateObject getPublicKey

List of usage examples for org.bouncycastle.jce.provider X509CertificateObject getPublicKey

Introduction

In this page you can find the example usage for org.bouncycastle.jce.provider X509CertificateObject getPublicKey.

Prototype

public PublicKey getPublicKey() 

Source Link

Usage

From source file:de.rub.nds.tlsattacker.tls.util.CertificateFetcher.java

License:Apache License

public static PublicKey fetchServerPublicKey(String connect, List<CipherSuite> cipherSuites) {
    ClientCommandConfig config = new ClientCommandConfig();
    config.setConnect(connect);/*from   ww  w  . ja  v a2  s.co m*/
    config.setCipherSuites(cipherSuites);
    X509CertificateObject cert = fetchServerCertificate(config);
    return cert.getPublicKey();
}

From source file:de.rub.nds.tlsattacker.tls.util.CertificateFetcher.java

License:Apache License

public static PublicKey fetchServerPublicKey(ClientCommandConfig config) {
    X509CertificateObject cert = fetchServerCertificate(config);
    return cert.getPublicKey();
}