/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/ |
D | HostnameVerifierTest.java | 38 mySSLSession session = new mySSLSession("localhost", 1080, null); in test_verify() local 40 assertFalse(hv.verify("localhost", session)); in test_verify() 50 mySSLSession session = new mySSLSession(new X509Certificate[] {x509}); in testVerify() local 53 assertTrue(verifier.verify("foo.com", session)); in testVerify() 54 assertFalse(verifier.verify("a.foo.com", session)); in testVerify() 55 assertFalse(verifier.verify("bar.com", session)); in testVerify() 59 session = new mySSLSession(new X509Certificate[] {x509}); in testVerify() 60 assertTrue(verifier.verify("\u82b1\u5b50.co.jp", session)); in testVerify() 61 assertFalse(verifier.verify("a.\u82b1\u5b50.co.jp", session)); in testVerify() 65 session = new mySSLSession(new X509Certificate[] {x509}); in testVerify() [all …]
|
D | HandshakeCompletedEventTest.java | 73 mySSLSession session = new mySSLSession(); in test_Constructor() local 75 HandshakeCompletedEvent event = new HandshakeCompletedEvent(socket, session); in test_Constructor() 88 mySSLSession session = new mySSLSession("localhost", 1080, null); in test_getCipherSuite() local 90 HandshakeCompletedEvent event = new HandshakeCompletedEvent(socket, session); in test_getCipherSuite() 99 mySSLSession session = new mySSLSession("localhost", 1080, null); in test_getLocalCertificates() local 101 HandshakeCompletedEvent event = new HandshakeCompletedEvent(socket, session); in test_getLocalCertificates() 110 mySSLSession session = new mySSLSession("localhost", 1080, null); in test_getLocalPrincipal() local 112 HandshakeCompletedEvent event = new HandshakeCompletedEvent(socket, session); in test_getLocalPrincipal() 122 mySSLSession session = new mySSLSession((X509Certificate[]) null); in test_getPeerCertificateChain() local 124 HandshakeCompletedEvent event = new HandshakeCompletedEvent(socket, session); in test_getPeerCertificateChain() [all …]
|
D | HttpsURLConnectionTest.java | 321 public boolean verify(String hostname, SSLSession session) { in verify() argument 322 if (hostname == session.getPeerHost()) { in verify()
|
/libcore/ojluni/src/main/java/javax/net/ssl/ |
D | HandshakeCompletedEvent.java | 54 private transient SSLSession session; field in HandshakeCompletedEvent 65 session = s; in HandshakeCompletedEvent() 76 return session; in getSession() 89 return session.getCipherSuite(); in getCipherSuite() 113 return session.getLocalCertificates(); in getLocalCertificates() 133 return session.getPeerCertificates(); in getPeerCertificates() 159 return session.getPeerCertificateChain(); in getPeerCertificateChain() 183 principal = session.getPeerPrincipal(); in getPeerPrincipal() 210 principal = session.getLocalPrincipal(); in getLocalPrincipal()
|
D | SSLSessionBindingEvent.java | 66 public SSLSessionBindingEvent(SSLSession session, String name) in SSLSessionBindingEvent() argument 68 super(session); in SSLSessionBindingEvent()
|
D | HostnameVerifier.java | 55 public boolean verify(String hostname, SSLSession session); in verify() argument
|
/libcore/luni/src/test/java/libcore/javax/net/ssl/ |
D | DefaultHostnameVerifierTest.java | 144 StubSSLSession session = new StubSSLSession(); in testNullParameters() local 145 session.peerCertificates = in testNullParameters() 147 verifier.verify(hostname, session); in testNullParameters() 156 verifier.verify(null, session); in testNullParameters() 413 StubSSLSession session = new StubSSLSession(); in verifyWithDomainNamePattern() local 416 session.peerCertificates = new Certificate[] { in verifyWithDomainNamePattern() 419 boolean resultWhenPatternInCn = verifier.verify(hostname, session); in verifyWithDomainNamePattern() 422 session.peerCertificates = new Certificate[] { in verifyWithDomainNamePattern() 426 boolean resultWhenPatternInSubjectAltName = verifier.verify(hostname, session); in verifyWithDomainNamePattern() 442 StubSSLSession session = new StubSSLSession(); in verifyWithServerCertificate() local [all …]
|
D | HttpsURLConnectionTest.java | 111 public boolean verify(String hostname, SSLSession session) { in verify() argument
|
D | SSLSocketTest.java | 423 SSLSession session = ssl.getSession(); in test_SSLSocket_getSession() local 424 assertNotNull(session); in test_SSLSocket_getSession() 425 assertFalse(session.isValid()); in test_SSLSocket_getSession() 431 SSLSession session = ssl.getHandshakeSession(); in test_SSLSocket_getHandshakeSession() local 432 assertNull(session); in test_SSLSocket_getHandshakeSession() 628 SSLSession session = event.getSession(); in test_SSLSocket_HandshakeCompletedListener() 639 System.out.println("Session=" + session); in test_SSLSocket_HandshakeCompletedListener() 652 assertNotNull(session); in test_SSLSocket_HandshakeCompletedListener() 653 byte[] id = session.getId(); in test_SSLSocket_HandshakeCompletedListener()
|
D | SSLEngineTest.java | 480 SSLSession session = e.getSession(); in test_SSLEngine_getSession() local 481 assertNotNull(session); in test_SSLEngine_getSession() 482 assertFalse(session.isValid()); in test_SSLEngine_getSession()
|
/libcore/support/src/test/java/tests/resources/manifest/ |
D | hyts_MANIFEST.MF | 8 com.ibm.ive.eccomm.service.session; specification-version=1.0.0, 24 com.ibm.ive.eccomm.service.session.SessionService
|
/libcore/support/src/test/java/libcore/javax/net/ssl/ |
D | TestSSLEnginePair.java | 86 SSLSession session = c.clientContext.createSSLEngine().getSession(); in connect() local 88 int packetBufferSize = session.getPacketBufferSize(); in connect() 92 int applicationBufferSize = session.getApplicationBufferSize(); in connect()
|
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/internal/net/www/protocol/https/ |
D | HttpsURLConnectionTest.java | 778 public boolean verify(String hostname, SSLSession session) { in verify() argument 781 + session.getPeerHost()); in verify()
|
/libcore/ojluni/src/main/java/sun/net/ftp/impl/ |
D | FtpClient.java | 1639 javax.net.ssl.SSLSession session = ((SSLSocket) server).getSession(); in reInit() local 1640 session.invalidate(); in reInit()
|
/libcore/luni/src/test/java/libcore/java/net/ |
D | URLConnectionTest.java | 3149 public boolean verify(String hostname, SSLSession session) {
|