List of usage examples for org.bouncycastle.crypto.params AsymmetricKeyParameter AsymmetricKeyParameter
public AsymmetricKeyParameter(boolean privateKey)
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)); }