/openjdk9/jdk/src/java.base/share/classes/sun/security/ssl/ |
H A D | HelloCookieManager.java | 36 * HelloVerifyRequest cookie manager 39 // the cookie secret life time 82 byte[] cookie = cookieDigest.digest(cookieSecret); // 32 bytes 83 cookie[0] = (byte)((cookieVersion >> 24) & 0xFF); 84 cookie[1] = (byte)((cookieVersion >> 16) & 0xFF); 85 cookie[2] = (byte)((cookieVersion >> 8) & 0xFF); 86 cookie[3] = (byte)(cookieVersion & 0xFF); 88 return cookie; 91 // Used by server side to check the cookie in ClientHello message. 93 byte[] cookie 127 checkCookie(ProtocolVersion protocolVersion, byte[] cookie) argument [all...] |
/openjdk9/jdk/src/java.base/share/classes/java/net/ |
H A D | CookiePolicy.java | 43 public boolean shouldAccept(URI uri, HttpCookie cookie) { 52 public boolean shouldAccept(URI uri, HttpCookie cookie) { 61 public boolean shouldAccept(URI uri, HttpCookie cookie) { 62 if (uri == null || cookie == null) 64 return HttpCookie.domainMatches(cookie.getDomain(), uri.getHost()); 70 * Will be called to see whether or not this cookie should be accepted. 73 * @param cookie the HttpCookie object in question 74 * @return {@code true} if this cookie should be accepted; 77 public boolean shouldAccept(URI uri, HttpCookie cookie); argument
|
H A D | CookieStore.java | 32 * A CookieStore object represents a storage for cookie. Can store and retrieve 37 * retrieve cookie for every outgoing HTTP request. A CookieStore 45 * Adds one HTTP cookie to the store. This is called for every 48 * <p>A cookie to store may or may not be associated with an URI. If it 49 * is not associated with an URI, the cookie's domain and path attribute 52 * where this cookie comes from. 54 * <p>If a cookie corresponding to the given URI already exists, 57 * @param uri the uri this cookie associated with. 58 * if {@code null}, this cookie will not be associated 60 * @param cookie th 67 add(URI uri, HttpCookie cookie) argument 120 remove(URI uri, HttpCookie cookie) argument [all...] |
H A D | CookieManager.java | 40 * policy decisions on cookie acceptance/rejection. 42 * <p> The HTTP cookie management in java.net package looks like: 64 * CookieHandler is at the core of cookie management. User can call 70 * or not one cookie should be accepted and put into cookie store. User can use 76 * CookieStore is the place where any accepted HTTP cookie is stored in. 89 * <p>There're various ways user can hook up his own HTTP cookie management behavior, e.g. 130 * Create a new cookie manager. 132 * <p>This constructor will create new cookie manager with default 133 * cookie stor 354 shouldAcceptInternal(URI uri, HttpCookie cookie) argument [all...] |
H A D | HttpCookie.java | 42 * An HttpCookie object represents an HTTP cookie, which carries state 46 * <p> There are 3 HTTP cookie specifications: 63 // The value of the cookie itself. 67 // Attributes encoded in the header's cookie fields. 68 private String comment; // Comment=VALUE ... describes cookie's use 69 private String commentURL; // CommentURL="http URL" ... describes cookie's use 70 private boolean toDiscard; // Discard ... discard cookie unconditionally 71 private String domain; // Domain=VALUE ... domain that sees cookie 73 private String path; // Path=VALUE ... URLs that see the cookie 74 private String portlist; // Port[="portlist"] ... the port cookie ma 856 assign(HttpCookie cookie, String attrName, String attrValue) argument 961 assignAttribute(HttpCookie cookie, String attrName, String attrValue) argument [all...] |
H A D | InMemoryCookieStore.java | 51 // CAUTION: when a cookie removed from main data structure (i.e. cookieJar), 53 // presence of cookie when retrieve one form index store. 73 * Add one cookie into cookie store. 75 public void add(URI uri, HttpCookie cookie) { argument 77 if (cookie == null) { 78 throw new NullPointerException("cookie is null"); 84 // remove the ole cookie if there has had one 85 cookieJar.remove(cookie); 87 // add new cookie i 359 addIndex(Map<T, List<HttpCookie>> indexStore, T index, HttpCookie cookie) argument [all...] |
/openjdk9/jdk/test/java/net/HttpCookie/ |
H A D | CookieNegativeMaxAge.java | 28 * if header contains cookie with "expires" attribute in the past then cookie 40 HttpCookie cookie = new HttpCookie("testCookie", "value"); 41 cookie.setMaxAge(Integer.MIN_VALUE); 42 if (cookie.hasExpired()) {
|
/openjdk9/jdk/src/java.naming/share/classes/javax/naming/ldap/ |
H A D | PagedResultsControl.java | 46 * byte[] cookie = null; 76 * cookie = prrc.getCookie(); 85 * new PagedResultsControl(pageSize, cookie, Control.CRITICAL) }); 86 * } while (cookie != null); 104 * cookie OCTET STRING 147 * page of results. The cookie is provided by the server and may be 151 * to zero and setting the cookie to the last cookie received from the 155 * @param cookie A possibly null server-generated cookie 164 PagedResultsControl(int pageSize, byte[] cookie, boolean criticality) argument 185 setEncodedValue(int pageSize, byte[] cookie) argument [all...] |
H A D | PagedResultsResponseControl.java | 35 * and an opaque cookie. The cookie must be supplied to the next search 52 * cookie OCTET STRING 79 * A server-generated cookie. 83 private byte[] cookie; field in class:PagedResultsResponseControl 106 cookie = ber.parseOctetString(Ber.ASN_OCTET_STR, null); 119 * Retrieves the server-generated cookie. Null is returned when there are 122 * @return A possibly null server-generated cookie. It is not cloned - any 123 * changes to the cookie will update the control's state and thus 127 if (cookie [all...] |
/openjdk9/jdk/test/java/net/CookieHandler/ |
H A D | TestHttpCookie.java | 63 HttpCookie cookie = cookies.get(index); 64 if (cookie == null || !n.equalsIgnoreCase(cookie.getName())) { 65 raiseError("name", cookie.getName(), n); 74 HttpCookie cookie = cookies.get(index); 75 if (cookie == null || !v.equals(cookie.getValue())) { 76 raiseError("value", cookie.getValue(), v); 85 HttpCookie cookie = cookies.get(index); 86 if (cookie [all...] |
H A D | NullUriCookieTest.java | 46 //get a cookie store implementation and add a cookie to the store with null URI 53 HttpCookie cookie = new HttpCookie("MY_COOKIE", "MY_COOKIE_VALUE"); 54 cookie.setDomain("foo.com"); 55 cookieStore.add(null, cookie); 57 //Retrieve added cookie 65 checkFail("Abnormal size of cookie jar"); 68 if (!chip.equals(cookie)) { 73 boolean ret = cookieStore.remove(null,cookie);
|
/openjdk9/jdk/src/java.base/share/classes/jdk/internal/misc/ |
H A D | JavaNetHttpCookieAccess.java | 34 * retaining the original header String in the cookie itself. 39 * Returns the original header this cookie was constructed from, if it was 42 public String header(HttpCookie cookie); argument
|
/openjdk9/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/jxc/gen/config/ |
H A D | NGCCHandler.java | 81 * @param cookie 82 * The cookie value passed to the child object 90 protected abstract void onChildCompleted( Object result, int cookie, boolean needAttCheck ) throws SAXException; argument 133 public void revertToParentFromEnterElement( Object result, int cookie, argument 137 _parent.onChildCompleted(result,cookie,true); 140 public void revertToParentFromLeaveElement( Object result, int cookie, argument 150 _parent.onChildCompleted(result,cookie,true); 153 public void revertToParentFromEnterAttribute( Object result, int cookie, argument 157 _parent.onChildCompleted(result,cookie,true); 160 public void revertToParentFromLeaveAttribute( Object result, int cookie, argument 167 revertToParentFromText( Object result, int cookie, String text ) argument [all...] |
/openjdk9/jaxws/src/jdk.xml.bind/share/classes/com/sun/xml/internal/xsom/impl/parser/state/ |
H A D | NGCCHandler.java | 79 * @param cookie 80 * The cookie value passed to the child object 88 protected abstract void onChildCompleted( Object result, int cookie, boolean needAttCheck ) throws SAXException; argument 131 public void revertToParentFromEnterElement( Object result, int cookie, argument 135 _parent.onChildCompleted(result,cookie,true); 138 public void revertToParentFromLeaveElement( Object result, int cookie, argument 148 _parent.onChildCompleted(result,cookie,true); 151 public void revertToParentFromEnterAttribute( Object result, int cookie, argument 155 _parent.onChildCompleted(result,cookie,true); 158 public void revertToParentFromLeaveAttribute( Object result, int cookie, argument 165 revertToParentFromText( Object result, int cookie, String text ) argument [all...] |
/openjdk9/hotspot/src/jdk.hotspot.agent/solaris/native/libsaproc/ |
H A D | saproc_audit.cpp | 51 la_objopen(Link_map * lmp, Lmid_t lmid, uintptr_t * cookie) argument 54 libproc_cookie = cookie; 58 libc_cookie = cookie; 62 libsaproc_cookie = cookie;
|
/openjdk9/hotspot/src/os/solaris/vm/ |
H A D | os_solaris.hpp | 78 typedef int (*lgrp_fini_func_t)(lgrp_cookie_t cookie); 79 typedef lgrp_id_t (*lgrp_root_func_t)(lgrp_cookie_t cookie); 80 typedef int (*lgrp_children_func_t)(lgrp_cookie_t cookie, lgrp_id_t parent, 82 typedef int (*lgrp_resources_func_t)(lgrp_cookie_t cookie, lgrp_id_t lgrp, 85 typedef int (*lgrp_nlgrps_func_t)(lgrp_cookie_t cookie); 86 typedef int (*lgrp_cookie_stale_func_t)(lgrp_cookie_t cookie); 242 static void set_lgrp_cookie(lgrp_cookie_t cookie) { _lgrp_cookie = cookie; } argument 246 static int lgrp_fini(lgrp_cookie_t cookie) { return _lgrp_fini != NULL ? _lgrp_fini(cookie) argument 247 lgrp_root(lgrp_cookie_t cookie) argument 248 lgrp_children(lgrp_cookie_t cookie, lgrp_id_t parent, lgrp_id_t *lgrp_array, uint_t lgrp_array_size) argument 252 lgrp_resources(lgrp_cookie_t cookie, lgrp_id_t lgrp, lgrp_id_t *lgrp_array, uint_t lgrp_array_size, lgrp_rsrc_t type) argument 258 lgrp_nlgrps(lgrp_cookie_t cookie) argument 259 lgrp_cookie_stale(lgrp_cookie_t cookie) argument [all...] |
/openjdk9/jdk/test/sun/net/www/protocol/http/ |
H A D | UserCookie.java | 93 List<String> cookie = reqHeaders.get("Cookie"); 95 if (cookie == null || !cookie.get(0).equals("value=ValueDoesNotMatter"))
|
H A D | HttpOnly.java | 51 * 2) populate cookie store with HttpOnly cookies 54 * 5) server reply with Set-Cookie containing HttpOnly cookie 100 // TEST 1: check getRequestProperty doesn't return the HttpOnly cookie 102 String cookie = uc.getRequestProperty("Cookie"); 103 check(cookie == null, 104 "Cookie header returned from getRequestProperty, value " + cookie); 106 // TEST 2: check getRequestProperties doesn't return the HttpOnly cookie. 166 // TEST 5: check getRequestProperty doesn't return the HttpOnly cookie 167 cookie = uc.getRequestProperty("Cookie"); 168 check(!cookie [all...] |
/openjdk9/jdk/src/java.management/share/classes/com/sun/jmx/mbeanserver/ |
H A D | PerInterface.java | 69 Object getAttribute(Object resource, String attribute, Object cookie) argument 83 return introspector.invokeM(cm, resource, (Object[]) null, cookie); 87 Object cookie) 102 introspector.invokeSetter(attribute, cm, resource, value, cookie); 106 String[] signature, Object cookie) 113 cookie); 136 cookie); 138 return introspector.invokeM(found.method, resource, params, cookie); 164 Object cookie) 211 return introspector.invokeM(method, resource, params, cookie); 86 setAttribute(Object resource, String attribute, Object value, Object cookie) argument 105 invoke(Object resource, String operation, Object[] params, String[] signature, Object cookie) argument 162 noSuchMethod(String msg, Object resource, String operation, Object[] params, String[] signature, Object cookie) argument [all...] |
H A D | MBeanIntrospector.java | 130 * @param cookie Additional information about the target. For an 134 * It would be cleaner if the type of the cookie were a 138 abstract Object invokeM2(M m, Object target, Object[] args, Object cookie) argument 147 Object cookie); 231 * Invoke the given M on the given target with the given args and cookie. 234 final Object invokeM(M m, Object target, Object[] args, Object cookie) argument 237 return invokeM2(m, target, args, cookie); 252 * and cookie. Wrap exceptions appropriately. 263 Object cookie) 267 invokeM2(setter, target, new Object[] {arg}, cookie); 146 validParameter(M m, Object value, int paramNo, Object cookie) argument 262 invokeSetter(String name, M setter, Object target, Object arg, Object cookie) argument 279 maybeInvalidParameter(String name, M setter, Object arg, Object cookie) argument [all...] |
/openjdk9/jdk/src/java.logging/share/classes/sun/net/www/protocol/http/logging/ |
H A D | HttpLogFormatter.java | 99 String cookie = s2.substring(i + 1, j > 0 ? j - 1 : s2.length() - 1); 100 buf.append("\t").append(cookie).append("\n"); 118 String cookie = s2.substring(i+1, j > 0 ? j-1 : s2.length() - 1); 119 buf.append("\t").append(cookie).append("\n");
|
/openjdk9/corba/src/java.corba/share/classes/com/sun/corba/se/impl/legacy/connection/ |
H A D | SocketFactoryContactInfoImpl.java | 63 SocketInfo cookie) 74 .getEndPointInfo(orb, effectiveTargetIOR, cookie); 58 SocketFactoryContactInfoImpl( ORB orb, CorbaContactInfoList contactInfoList, IOR effectiveTargetIOR, short addressingDisposition, SocketInfo cookie) argument
|
/openjdk9/hotspot/src/share/tools/IdealGraphVisualizer/View/src/com/sun/hotspot/igv/view/actions/ |
H A D | ExportAction.java | 92 ExportCookie cookie = Utilities.actionsGlobalContext().lookup(ExportCookie.class); 93 if (cookie != null) { 94 cookie.export(file);
|
/openjdk9/jaxp/src/jdk.xml.dom/share/classes/org/w3c/dom/html/ |
H A D | HTMLDocument.java | 138 public void setCookie(String cookie); argument
|
/openjdk9/langtools/src/jdk.compiler/share/classes/com/sun/tools/sjavac/server/ |
H A D | PortFile.java | 44 * and a cookie necessary for the server answering on that port. The file can be locked using file system 60 // Followed by a 8 byte long, with cookie nr. 159 * If so, then we can acquire the server cookie. 169 public void setValues(int port, long cookie) throws IOException { argument 175 rwfile.writeLong(cookie); 177 myServerCookie = cookie;
|