Home
last modified time | relevance | path

Searched refs:engine (Results 1 – 9 of 9) sorted by relevance

/libcore/support/src/test/java/libcore/javax/net/ssl/
DTestSSLEnginePair.java148 for (SSLEngine engine : engines) { in close()
149 if (engine != null) { in close()
150 engine.closeInbound(); in close()
151 engine.closeOutbound(); in close()
159 private static boolean handshakeCompleted(SSLEngine engine, in handshakeCompleted() argument
168 HandshakeStatus status = engine.getHandshakeStatus(); in handshakeCompleted()
174 Runnable runnable = engine.getDelegatedTask(); in handshakeCompleted()
189 SSLEngineResult unwrapResult = engine.unwrap(input, scratch); in handshakeCompleted()
206 SSLEngineResult wrapResult = engine.wrap(emptyByteBuffer, output); in handshakeCompleted()
DForwardingX509ExtendedKeyManager.java63 public String chooseEngineClientAlias(String[] keyType, Principal[] issuers, SSLEngine engine) { in chooseEngineClientAlias() argument
64 return delegate.chooseEngineClientAlias(keyType, issuers, engine); in chooseEngineClientAlias()
68 public String chooseEngineServerAlias(String keyType, Principal[] issuers, SSLEngine engine) { in chooseEngineServerAlias() argument
69 return delegate.chooseEngineServerAlias(keyType, issuers, engine); in chooseEngineServerAlias()
DTestTrustManager.java110 public void checkClientTrusted(X509Certificate[] chain, String authType, SSLEngine engine) in checkClientTrusted() argument
120 + "engine=" + engine + " "); in checkClientTrusted()
123 extendedTrustManager.checkClientTrusted(chain, authType, engine); in checkClientTrusted()
175 public void checkServerTrusted(X509Certificate[] chain, String authType, SSLEngine engine) in checkServerTrusted() argument
185 + "engine=" + engine.toString() + " "); in checkServerTrusted()
188 extendedTrustManager.checkServerTrusted(chain, authType, engine); in checkServerTrusted()
DTestKeyManager.java200 private void dumpEngine(SSLEngine engine) { in dumpEngine() argument
202 out.print(String.valueOf(engine)); in dumpEngine()
/libcore/luni/src/test/java/libcore/javax/net/ssl/
DSSLEngineTest.java63 SSLEngine engine = new PlainSSLEngine(); in test_Alpn() local
65 engine.getApplicationProtocol(); in test_Alpn()
70 engine.getHandshakeApplicationProtocol(); in test_Alpn()
75 engine.setHandshakeApplicationProtocolSelector( in test_Alpn()
86 engine.getHandshakeApplicationProtocolSelector(); in test_Alpn()
/libcore/ojluni/src/main/java/javax/net/ssl/
DX509ExtendedKeyManager.java68 Principal[] issuers, SSLEngine engine) { in chooseEngineClientAlias() argument
91 Principal[] issuers, SSLEngine engine) { in chooseEngineServerAlias() argument
DX509ExtendedTrustManager.java186 String authType, SSLEngine engine) throws CertificateException; in checkClientTrusted() argument
232 String authType, SSLEngine engine) throws CertificateException; in checkServerTrusted() argument
/libcore/tools/docs/crypto/src/java/libcore/java/security/
DListProviders.java148 SSLEngine engine = sslContext.createSSLEngine(); in main() local
149 for (String suite : engine.getSupportedCipherSuites()) { in main()
152 for (String suite : engine.getEnabledCipherSuites()) { in main()
168 @Override public String chooseServerKeyIdentityHint(SSLEngine engine) { return null; } in chooseServerKeyIdentityHint() argument
170 …@Override public String chooseClientKeyIdentity(String identityHint, SSLEngine engine) { return nu… in chooseClientKeyIdentity() argument
172 …@Override public SecretKey getKey(String identityHint, String identity, SSLEngine engine) { return… in getKey() argument
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/
DSSLEngineTest.java326 … ByteBuffer bbd = ByteBuffer.allocate(clientEngine.engine.getSession().getApplicationBufferSize()); in test_unwrap_01()
328 clientEngine.engine.unwrap(bbs, new ByteBuffer[] { bbd }, 0, 1); in test_unwrap_01()
473 clientEngine.engine.wrap(new ByteBuffer[] { bbs }, 0, 1, bbd); in test_wrap_01()
630 SSLEngineResult unwrap = clientEngine.engine.unwrap(bbs, bbd); in test_unwrap_ByteBuffer_ByteBuffer_01()
738 clientEngine.engine.unwrap(bbs, new ByteBuffer[] { bbd }); in test_unwrap_ByteBuffer$ByteBuffer_01()
843 clientEngine.engine.wrap(bbs, bbd); in test_wrap_ByteBuffer_ByteBuffer_01()
942 clientEngine.engine.wrap(new ByteBuffer[] { bbs }, bbd); in test_wrap_ByteBuffer$ByteBuffer_01()
943 serverEngine.engine.wrap(new ByteBuffer[] { bbs }, bbd); in test_wrap_ByteBuffer$ByteBuffer_01()
1081 private final SSLEngine engine;
1102 engine = context.createSSLEngine();
[all …]