Home
last modified time | relevance | path

Searched refs:session (Results 1 – 10 of 10) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/
DHostnameVerifierTest.java38 mySSLSession session = new mySSLSession("localhost", 1080, null); in test_verify() local
40 assertFalse(hv.verify("localhost", session)); in test_verify()
52 mySSLSession session = new mySSLSession(new X509Certificate[] {x509}); in testVerify() local
53 assertFalse(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()
60 session = new mySSLSession(new X509Certificate[] {x509}); in testVerify()
61 assertFalse(verifier.verify("\u82b1\u5b50.co.jp", session)); in testVerify()
62 assertFalse(verifier.verify("a.\u82b1\u5b50.co.jp", session)); in testVerify()
67 session = new mySSLSession(new X509Certificate[] {x509}); in testVerify()
[all …]
DHandshakeCompletedEventTest.java73 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 …]
DHttpsURLConnectionTest.java321 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/
DHandshakeCompletedEvent.java54 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()
DSSLSessionBindingEvent.java66 public SSLSessionBindingEvent(SSLSession session, String name) in SSLSessionBindingEvent() argument
68 super(session); in SSLSessionBindingEvent()
DHostnameVerifier.java55 public boolean verify(String hostname, SSLSession session); in verify() argument
/libcore/luni/src/test/java/libcore/javax/net/ssl/
DDefaultHostnameVerifierTest.java147 StubSSLSession session = new StubSSLSession(); in testNullParameters() local
148 session.peerCertificates = in testNullParameters()
150 verifier.verify(hostname, session); in testNullParameters()
159 verifier.verify(null, session); in testNullParameters()
418 StubSSLSession session = new StubSSLSession(); in verifyWithDomainNamePattern() local
421 session.peerCertificates = new Certificate[] { in verifyWithDomainNamePattern()
424 assertFalse("Verifier should ignore CN.", verifier.verify(hostname, session)); in verifyWithDomainNamePattern()
427 session.peerCertificates = new Certificate[] { in verifyWithDomainNamePattern()
431 return verifier.verify(hostname, session); in verifyWithDomainNamePattern()
438 StubSSLSession session = new StubSSLSession(); in verifyWithServerCertificate() local
[all …]
/libcore/support/src/test/java/tests/resources/manifest/
Dhyts_MANIFEST.MF8 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/
DTestSSLEnginePair.java86 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/
DHttpsURLConnectionTest.java778 public boolean verify(String hostname, SSLSession session) { in verify() argument
781 + session.getPeerHost()); in verify()