/libcore/ojluni/src/main/java/sun/security/ssl/ |
H A D | SSLServerSocketFactoryImpl.java | 43 private SSLContextImpl context; field in class:SSLServerSocketFactoryImpl 52 this.context = SSLContextImpl.DefaultSSLContext.getDefaultImpl(); 58 SSLServerSocketFactoryImpl (SSLContextImpl context) argument 60 this.context = context; 71 return new SSLServerSocketImpl(context); 77 return new SSLServerSocketImpl (port, DEFAULT_BACKLOG, context); 84 return new SSLServerSocketImpl (port, backlog, context); 91 return new SSLServerSocketImpl (port, backlog, ifAddress, context); 102 return context [all...] |
H A D | SSLSocketFactoryImpl.java | 39 * authentication context (and the keys held there) rather than offering 40 * any flexibility about which keys to use; that context defaults to the 41 * process-default context, but may be explicitly specified. 48 private SSLContextImpl context; field in class:SSLSocketFactoryImpl 56 this.context = SSLContextImpl.DefaultSSLContext.getDefaultImpl(); 62 SSLSocketFactoryImpl(SSLContextImpl context) { argument 63 this.context = context; 73 return new SSLSocketImpl(context); 79 * existing SSL sessions allowed by the authentication context whic [all...] |
H A D | SSLServerSocketImpl.java | 50 * <P> Also, the constructors take an explicit authentication context 56 * connections if they the authentication context has not been given 97 * authentication context and a specified connection backlog. 102 * @param context authentication context for this server 104 SSLServerSocketImpl(int port, int backlog, SSLContextImpl context) argument 108 initServer(context); 114 * authentication context and a specified backlog of connections 125 * @param context authentication context fo 127 SSLServerSocketImpl( int port, int backlog, InetAddress address, SSLContextImpl context) argument 142 SSLServerSocketImpl(SSLContextImpl context) argument 151 initServer(SSLContextImpl context) argument [all...] |
H A D | SSLSessionImpl.java | 61 * Implements the SSL session interface, and exposes the session context 65 * their authentication context(s). They can do this by enumerating the 73 * there's no other public way to get at the server session context which 74 * is associated with any given authentication context. </em> 107 private SSLSessionContextImpl context; field in class:SSLSessionImpl 295 return context; 588 if (context == null) { 589 context = ctx; 610 if (context != null) { 611 context [all...] |
H A D | SSLSocketImpl.java | 312 * The authentication context holds all information used to establish 391 * using the authentication context provided. This endpoint acts as 394 * @param context authentication context to use 398 SSLSocketImpl(SSLContextImpl context, String host, int port) argument 403 init(context, false); 413 * and TCP port, using the authentication context provided. This 417 * @param context authentication context to use 421 SSLSocketImpl(SSLContextImpl context, InetAddres argument 440 SSLSocketImpl(SSLContextImpl context, String host, int port, InetAddress localAddr, int localPort) argument 467 SSLSocketImpl(SSLContextImpl context, InetAddress host, int port, InetAddress localAddr, int localPort) argument 483 SSLSocketImpl(SSLContextImpl context, boolean serverMode, CipherSuiteList suites, byte clientAuth, boolean sessionCreation, ProtocolList protocols, String identificationProtocol, AlgorithmConstraints algorithmConstraints) argument 510 SSLSocketImpl(SSLContextImpl context) argument 532 SSLSocketImpl(SSLContextImpl context, Socket sock, String host, int port, boolean autoClose) argument 549 init(SSLContextImpl context, boolean isServer) argument [all...] |
/libcore/dex/src/main/java/com/android/dex/util/ |
H A D | ExceptionWithContext.java | 23 * Exception which carries around structured context. 26 /** {@code non-null;} human-oriented context of the exception */ 27 private StringBuffer context; field in class:ExceptionWithContext 30 * Augments the given exception with the given context, and return the 36 * @param str {@code non-null;} context to add 82 String ctx = ((ExceptionWithContext) cause).context.toString(); 83 context = new StringBuffer(ctx.length() + 200); 84 context.append(ctx); 86 context = new StringBuffer(200); 94 out.println(context); [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/ |
H A D | SSLSessionContextTest.java | 23 SSLContext context = SSLContext.getInstance("TLS"); 24 context.init(null, null, null); 25 SSLSessionContext sc = context 47 SSLContext context = SSLContext.getInstance("TLS"); 48 context.init(null, null, null); 49 SSLSessionContext sc = context 70 SSLContext context = SSLContext.getInstance("TLS"); 71 context.init(null, null, null); 72 SSLSessionContext sc = context 88 SSLContext context [all...] |
H A D | SSLServerSocketTest.java | 409 SSLContext context = SSLContext.getInstance("TLS"); 410 context.init(getKeyManagers(), null, null); 411 SSLServerSocket sss = (SSLServerSocket) context.getServerSocketFactory()
|
/libcore/ojluni/src/main/java/sun/misc/ |
H A D | IoTrace.java | 39 * The xxBegin() methods return a "context". This can be any Object. This 40 * context will be passed to the corresponding xxEnd() method. This way, an 72 * @return a context object 81 * @param context 82 * the context returned by the previous call to socketReadBegin() 94 public static void socketReadEnd(Object context, InetAddress address, int port, argument 101 * @return a context object 110 * @param context 111 * the context returned by the previous call to 121 public static void socketWriteEnd(Object context, InetAddres argument 145 fileReadEnd(Object context, long bytesRead) argument 168 fileWriteEnd(Object context, long bytesWritten) argument [all...] |
/libcore/benchmarks/src/benchmarks/regression/ |
H A D | SSLLoopbackBenchmark.java | 28 TestSSLContext context = TestSSLContext.create( 30 SSLSocket[] sockets = TestSSLSocketPair.connect(context, null, null); 31 context.close();
|
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/ |
H A D | LoggingTestCase.java | 43 private Map<String, Object> context = new HashMap<>(); field in class:LoggingTestCase 47 context.clear(); 55 list.add(context.toString()); 61 context.put(key, value); 65 context.remove(key);
|
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/ |
H A D | LoggingTestCase.java | 43 private Map<String, Object> context = new HashMap<>(); field in class:LoggingTestCase 47 context.clear(); 55 list.add(context.toString()); 61 context.put(key, value); 65 context.remove(key);
|
/libcore/luni/src/test/java/libcore/xml/ |
H A D | JaxenXPathTestSuite.java | 74 * <context .../> 75 * <context .../> 76 * <context .../> 79 * <context .../> 92 for (final Element context : elementsOf(document.getElementsByTagName("context"))) { 93 contextToTestSuite(result, url, inputSource, context); 101 * Populates the test suite with tests from the given XML context element. 107 * Each context element has this structure: 109 * <context selec 150 createFromTest( final XPath xpath, final Context context, final Element element) argument 202 createFromValueOf( final XPath xpath, final Context context, final Element element) argument 249 private final Context context; field in class:JaxenXPathTestSuite.XPathTest 252 XPathTest(Context context, String select) argument [all...] |
/libcore/ojluni/src/main/java/java/security/ |
H A D | AccessControlContext.java | 37 public AccessControlContext(ProtectionDomain context[]) { argument
|
H A D | AccessController.java | 56 AccessControlContext context) { 90 AccessControlContext context) 55 doPrivileged(PrivilegedAction<T> action, AccessControlContext context) argument 89 doPrivileged(PrivilegedExceptionAction<T> action, AccessControlContext context) argument
|
/libcore/json/src/main/java/org/json/ |
H A D | JSONStringer.java | 189 Scope context = peek(); 190 if (context != nonempty && context != empty) { 195 if (context == nonempty) { 384 Scope context = peek(); 385 if (context == Scope.NONEMPTY_OBJECT) { // first in object 387 } else if (context != Scope.EMPTY_OBJECT) { // not in an object! 404 Scope context = peek(); 405 if (context == Scope.EMPTY_ARRAY) { // first in array 408 } else if (context [all...] |
/libcore/support/src/test/java/libcore/javax/net/ssl/ |
H A D | TestSSLSocketPair.java | 71 public static SSLSocket[] connect (final TestSSLContext context, argument 76 context.clientContext.getSocketFactory().createSocket(context.host, context.port); 77 final SSLSocket server = (SSLSocket) context.serverSocket.accept();
|
/libcore/ojluni/src/main/java/java/lang/ |
H A D | SecurityManager.java | 119 public void checkPermission(Permission perm, Object context) { argument 141 public void checkRead(String file, Object context) { } argument 151 public void checkConnect(String host, int port, Object context) { } argument
|
/libcore/dom/src/test/java/org/w3c/domts/ |
H A D | DOMTestCase.java | 346 String context, 356 // if the context is attribute, then use case-insentive comparison 358 if ("attribute".equals(context)) { 398 String context, 404 if ("attribute".equals(context)) { 429 String context, 435 if ("attribute".equals(context)) { 576 String context, 582 if ("attribute".equals(context)) { 830 public boolean equalsAutoCase(String context, Strin argument 345 assertEqualsAutoCase( String context, String assertID, String expected, String actual) argument 397 assertEqualAutoCase( String context, String assertID, Collection expected, Collection actual) argument 428 assertEqualsAutoCase( String context, String assertID, List expected, List actual) argument 575 assertNotEqualsAutoCase( String context, String assertID, String expected, String actual) argument 851 equalsAutoCase(String context, Collection expected, Collection actual) argument 873 equalsAutoCase(String context, List expected, List actual) argument [all...] |
/libcore/ojluni/src/main/java/javax/net/ssl/ |
H A D | SSLContext.java | 111 * Returns the default SSL context. 113 * <p>If a default context was set using the {@link #setDefault 117 * If successful, that object is made the default SSL context and returned. 119 * <p>The default context is immediately 122 * @return the default SSL context 136 * Sets the default SSL context. It will be returned by subsequent calls 137 * to {@link #getDefault}. The default context must be immediately usable 140 * @param context the SSLContext 141 * @throws NullPointerException if context is null 147 public static synchronized void setDefault(SSLContext context) { argument [all...] |
H A D | SSLServerSocketFactory.java | 136 SSLContext context = SSLContext.getDefault(); 137 if (context != null) { 138 defaultServerSocketFactory = context.getServerSocketFactory();
|
H A D | SSLSocketFactory.java | 139 SSLContext context = SSLContext.getDefault(); 140 if (context != null) { 141 defaultSocketFactory = context.getSocketFactory();
|
/libcore/ojluni/src/main/java/java/net/ |
H A D | URL.java | 439 * Creates a URL by parsing the given spec within a specified context. 441 * The new URL is created from the given context URL and the spec 454 * the scheme of the context, then the new URL is created as an absolute 456 * from the context URL. 460 * context authority and path. If the authority component is absent in the 462 * context. 466 * path is treated as absolute and the spec path replaces the context path. 469 * context path, as described in RFC2396. Also, in this case, 475 * @param context the context i 485 URL(URL context, String spec) argument 509 URL(URL context, String spec, URLStreamHandler handler) argument [all...] |
/libcore/luni/src/main/native/ |
H A D | org_apache_harmony_xml_ExpatParser.cpp | 452 * @param data parsing context 576 char* context = NULL; local 577 char* a = strtok_r(mCopy, "|", &context); 578 char* b = strtok_r(NULL, "|", &context); 579 char* c = strtok_r(NULL, "|", &context); 605 * @param data parsing context 647 * @param data parsing context 672 * @param data parsing context 684 * @param data parsing context 694 * @param data parsing context 869 handleExternalEntity(XML_Parser parser, const char* context, const char*, const char* systemId, const char* publicId) argument 1021 ParsingContext* context = toParsingContext(parser); local 1078 ParsingContext* context = toParsingContext(parser); local 1102 ParsingContext* context = toParsingContext(toXMLParser(address)); local 1115 ParsingContext* context = toParsingContext(toXMLParser(address)); local 1128 ParsingContext* context = toParsingContext(toXMLParser(address)); local [all...] |
/libcore/luni/src/test/java/libcore/javax/net/ssl/ |
H A D | SSLSocketTest.java | 1452 // Second connection with client NPN already set on the SSL context, but 1855 TestSSLContext context = TestSSLContext.create(); 1859 client = (SSLSocket) context.clientContext.getSocketFactory().createSocket(); 1860 client.connect(new InetSocketAddress(context.host, context.port)); 1871 context.close(); 1916 TestSSLContext context = TestSSLContext.create(); 1919 context.clientContext.getSocketFactory().createSocket(context.host, context [all...] |