Example usage for org.bouncycastle.crypto.params AsymmetricKeyParameter AsymmetricKeyParameter

List of usage examples for org.bouncycastle.crypto.params AsymmetricKeyParameter AsymmetricKeyParameter

Introduction

In this page you can find the example usage for org.bouncycastle.crypto.params AsymmetricKeyParameter AsymmetricKeyParameter.

Prototype

public AsymmetricKeyParameter(boolean privateKey) 

Source Link

Usage

From source file:com.bitbreeds.webrtc.dtls.WebrtcDtlsServer.java

License:Open Source License

protected TlsEncryptionCredentials getRSAEncryptionCredentials() throws IOException {

    return new DefaultTlsEncryptionCredentials(context, cert, new AsymmetricKeyParameter(true));
}

From source file:org.cryptomator.siv.JceAesBlockCipherTest.java

License:Open Source License

@Test
public void testInitWithMissingKey() {
    JceAesBlockCipher cipher = new JceAesBlockCipher();
    thrown.expect(IllegalArgumentException.class);
    thrown.expectMessage("missing parameter of type KeyParameter");
    cipher.init(true, new AsymmetricKeyParameter(true));
}