/openjdk9/jdk/src/java.base/share/classes/java/text/ |
H A D | RuleBasedCollationKey.java | 59 int result = key.compareTo(((RuleBasedCollationKey)(target)).key); 81 return key.equals(other.key); 86 * key itself, not the String from which the key was created. Thus 93 return (key.hashCode()); 104 char[] src = key.toCharArray(); 117 RuleBasedCollationKey(String source, String key) { argument 119 this.key 121 private String key = null; field in class:RuleBasedCollationKey [all...] |
/openjdk9/jdk/src/jdk.crypto.ec/share/classes/sun/security/ec/ |
H A D | ECKeyFactory.java | 77 * ECPublicKey or ECPrivateKey. Check the key and convert it 78 * to a Sun key if necessary. If the key is not an EC key 87 public static ECKey toECKey(Key key) throws InvalidKeyException { argument 88 if (key instanceof ECKey) { 89 ECKey ecKey = (ECKey)key; 96 * all key factories. 98 return (ECKey)getInstance().translateKey(key); 103 * Check that the given EC key i 105 checkKey(ECKey key) argument 132 engineTranslateKey(Key key) argument 174 implTranslatePublicKey(PublicKey key) argument 195 implTranslatePrivateKey(PrivateKey key) argument 247 engineGetKeySpec(Key key, Class<T> keySpec) argument [all...] |
/openjdk9/jdk/test/java/util/HashMap/ |
H A D | OverrideIsEmpty.java | 45 public V get(Object key) { argument 46 if (key == alwaysExistingKey) { 49 return super.get(key); 65 Object key = new Object(); 67 map.get(key); 68 map.remove(key); 69 map.replace(key, value, null); 70 map.replace(key, value); 71 map.computeIfPresent(key, new BiFunction<Object, Object, Object>() { 72 public Object apply(Object key, Objec [all...] |
/openjdk9/jdk/test/tools/launcher/ |
H A D | EnvironmentVariables.java | 39 String key = null; 42 key = name; 48 if (key == null) { 49 key = s; 56 if (key == null) { 61 System.err.println("Will check the variable named: '" + key + 64 if (!System.getenv().containsKey(key)) { 65 throw new RuntimeException("ERROR: the variable '" + key + 69 if (!expect.equals(System.getenv().get(key))) { 71 "', got: '" + System.getenv().get(key) [all...] |
/openjdk9/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/api/ha/ |
H A D | HaInfo.java | 44 * <li>key - Related {@link com.sun.org.glassfish.ha.store.api.BackingStore} keys can 46 * and subsequent related stores use the same key. 64 private final String key; field in class:HaInfo 67 public HaInfo(String key, String replicaInstance, boolean failOver) { argument 68 this.key = key; 78 return key;
|
/openjdk9/jdk/src/java.base/share/classes/com/sun/crypto/provider/ |
H A D | DESKey.java | 35 * This class represents a DES key. 45 private byte[] key; field in class:DESKey 48 * Uses the first 8 bytes of the given key as the DES key. 50 * @param key the buffer with the DES key bytes. 53 * the key. 55 DESKey(byte[] key) throws InvalidKeyException { argument 56 this(key, 0); 60 * Uses the first 8 bytes in <code>key</cod 70 DESKey(byte[] key, int offset) argument [all...] |
H A D | DESKeyFactory.java | 37 * This class implements the DES key factory of the Sun provider. 52 * Generates a <code>SecretKey</code> object from the provided key 53 * specification (key material). 55 * @param keySpec the specification (key material) of the secret key 57 * @return the secret key 59 * @exception InvalidKeySpecException if the given key specification 60 * is inappropriate for this key factory to produce a public key. 75 "Inappropriate key specificatio 98 engineGetKeySpec(SecretKey key, Class<?> keySpec) argument 139 engineTranslateKey(SecretKey key) argument [all...] |
H A D | DESedeKeyFactory.java | 37 * This class implements the DES-EDE key factory of the Sun provider. 52 * Generates a <code>SecretKey</code> object from the provided key 53 * specification (key material). 55 * @param keySpec the specification (key material) of the secret key 57 * @return the secret key 59 * @exception InvalidKeySpecException if the given key specification 60 * is inappropriate for this key factory to produce a public key. 74 ("Inappropriate key specificatio 96 engineGetKeySpec(SecretKey key, Class<?> keySpec) argument 134 engineTranslateKey(SecretKey key) argument [all...] |
/openjdk9/jdk/src/java.base/share/classes/sun/nio/fs/ |
H A D | AbstractWatchService.java | 42 // special key to indicate that watch service is closed 70 // used by AbstractWatchKey to enqueue key 71 final void enqueueKey(WatchKey key) { argument 72 pendingKeys.offer(key); 84 * Checks the key isn't the special CLOSE_KEY used to unblock threads when 87 private void checkKey(WatchKey key) { argument 88 if (key == CLOSE_KEY) { 90 enqueueKey(key); 98 WatchKey key = pendingKeys.poll(); 99 checkKey(key); [all...] |
/openjdk9/nashorn/test/script/nosecurity/treeapi/ |
H A D | switch.js | 38 switch (key) {}; 39 switch (key) { 43 switch (key) {
|
/openjdk9/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/api/ |
H A D | Formattable.java | 59 String key; field in class:Formattable.LocalizedString 61 public LocalizedString(String key) { argument 62 this.key = key; 66 return messages.getLocalizedString(l, key); 73 return key;
|
/openjdk9/jdk/src/java.base/share/classes/javax/crypto/spec/ |
H A D | SecretKeySpec.java | 34 * This class specifies a secret key in a provider-independent fashion. 41 * a byte array and have no key parameters associated with them, e.g., DES or 55 * The secret key. 59 private byte[] key; field in class:SecretKeySpec 62 * The name of the algorithm associated with this key. 69 * Constructs a secret key from the given byte array. 72 * secret key of the specified algorithm. For example, if the algorithm is 73 * DES, this constructor does not check if <code>key</code> is 8 bytes 76 * <i>key specification</i> class (in this case: 80 * @param key th 90 SecretKeySpec(byte[] key, String algorithm) argument 138 SecretKeySpec(byte[] key, int offset, int len, String algorithm) argument [all...] |
/openjdk9/jdk/src/java.desktop/unix/classes/sun/awt/X11/ |
H A D | XCreateWindowParams.java | 48 public XCreateWindowParams putIfNull(Object key, Object value) { argument 49 if (!containsKey(key)) { 50 put(key, value); 54 public XCreateWindowParams putIfNull(Object key, int value) { argument 55 if (!containsKey(key)) { 56 put(key, Integer.valueOf(value)); 60 public XCreateWindowParams putIfNull(Object key, long value) { argument 61 if (!containsKey(key)) { 62 put(key, Long.valueOf(value)); 67 public XCreateWindowParams add(Object key, Objec argument 71 add(Object key, int value) argument 75 add(Object key, long value) argument 79 delete(Object key) argument [all...] |
/openjdk9/jdk/src/jdk.crypto.cryptoki/share/classes/sun/security/pkcs11/ |
H A D | P11KeyFactory.java | 59 * Convert an arbitrary key of algorithm into a P11Key of token. 62 static P11Key convertKey(Token token, Key key, String algorithm) argument 64 return (P11Key)token.getKeyFactory(algorithm).engineTranslateKey(key); 68 protected final <T extends KeySpec> T engineGetKeySpec(Key key, Class<T> keySpec) argument 71 if ((key == null) || (keySpec == null)) { 73 ("key and keySpec must not be null"); 79 return implGetSoftwareFactory().getKeySpec(key, keySpec); 81 throw new InvalidKeySpecException("Could not encode key", e); 84 // first translate into a key of this token, if it is not already 87 p11Key = (P11Key)engineTranslateKey(key); 106 engineTranslateKey(Key key) argument 140 implGetPublicKeySpec(P11Key key, Class<T> keySpec, Session[] session) argument 143 implGetPrivateKeySpec(P11Key key, Class<T> keySpec, Session[] session) argument 146 implTranslatePublicKey(PublicKey key) argument 149 implTranslatePrivateKey(PrivateKey key) argument [all...] |
/openjdk9/jaxp/src/java.xml/share/classes/com/sun/org/apache/xerces/internal/impl/dv/ |
H A D | InvalidDatatypeFacetException.java | 42 * @param key error code 45 public InvalidDatatypeFacetException(String key, Object[] args) { argument 46 super(key, args);
|
H A D | InvalidDatatypeValueException.java | 41 * @param key error code 44 public InvalidDatatypeValueException(String key, Object[] args) { argument 45 super(key, args);
|
/openjdk9/jdk/src/java.desktop/share/classes/com/sun/imageio/plugins/common/ |
H A D | I18N.java | 30 public static String getString(String key) { argument 31 return getString("com.sun.imageio.plugins.common.I18N", resource_name, key);
|
/openjdk9/jdk/src/jdk.internal.opt/share/classes/jdk/internal/joptsimple/util/ |
H A D | KeyValuePair.java | 61 * <p>A simple string key/string value pair.</p> 63 * <p>This is useful as an argument type for options whose values take on the form <kbd>key=value</kbd>, such as JVM 69 public final String key; field in class:KeyValuePair 72 private KeyValuePair( String key, String value ) { argument 73 this.key = key; 78 * Parses a string assumed to be of the form <kbd>key=value</kbd> into its parts. 80 * @param asString key-value string 81 * @return a key-value pair 101 return key [all...] |
/openjdk9/jaxp/src/java.xml/share/classes/com/sun/org/apache/xml/internal/serializer/ |
H A D | OutputPropertyUtils.java | 39 * Searches for the boolean property with the specified key in the property list. 40 * If the key is not found in this property list, the default property list, 45 * @param key the property key. 50 public static boolean getBooleanProperty(String key, Properties props) argument 53 String s = props.getProperty(key); 62 * Searches for the int property with the specified key in the property list. 63 * If the key is not found in this property list, the default property list, 68 * @param key the property key 73 getIntProperty(String key, Properties props) argument [all...] |
/openjdk9/jdk/src/java.scripting/share/classes/javax/script/ |
H A D | SimpleBindings.java | 67 * Sets the specified key/value in the underlying {@code map} field. 72 * @return Previous value for the specified key. Returns null if key was previously 89 * if toMerge map is null or if some key in the map is null. 91 * if some key in the map is an empty String. 98 String key = entry.getKey(); 99 checkKey(key); 100 put(key, entry.getValue()); 111 * key. More formally, returns {@code true} if and only if 112 * this map contains a mapping for a key { 124 containsKey(Object key) argument 161 get(Object key) argument 198 remove(Object key) argument 213 checkKey(Object key) argument [all...] |
/openjdk9/jdk/test/sun/security/rsa/ |
H A D | TestKeyFactory.java | 53 * Test that key1 (reference key) and key2 (key to be tested) are 77 private static void testPublic(KeyFactory kf, PublicKey key) throws Exception { argument 78 System.out.println("Testing public key..."); 79 PublicKey key2 = (PublicKey)kf.translateKey(key); 80 KeySpec rsaSpec = kf.getKeySpec(key, RSAPublicKeySpec.class); 82 KeySpec x509Spec = kf.getKeySpec(key, X509EncodedKeySpec.class); 84 KeySpec x509Spec2 = new X509EncodedKeySpec(key.getEncoded()); 86 testKey(key, key); 93 testPrivate(KeyFactory kf, PrivateKey key) argument 117 test(KeyFactory kf, Key key) argument [all...] |
/openjdk9/jdk/src/java.base/share/classes/java/util/ |
H A D | Dictionary.java | 31 * Every key and every value is an object. In any one {@code Dictionary} 32 * object, every key is associated with at most one value. Given a 33 * {@code Dictionary} and a key, the associated element can be looked up. 34 * Any non-{@code null} object can be used as a key and as a value. 100 * Returns the value to which the key is mapped in this dictionary. 102 * dictionary contains an entry for the specified key, the associated 105 * @return the value to which the key is mapped in this dictionary; 106 * @param key a key in this dictionary. 107 * {@code null} if the key i 112 get(Object key) argument 141 put(K key, V value) argument 154 remove(Object key) argument [all...] |
/openjdk9/jdk/src/java.base/share/classes/javax/security/auth/x500/ |
H A D | X500PrivateCredential.java | 34 * It associates an X.509 certificate, corresponding private key and the 35 * KeyStore alias used to reference that exact key pair in the KeyStore. 43 private PrivateKey key; field in class:X500PrivateCredential 48 * a private key and the KeyStore alias. 51 * @param key PrivateKey for the certificate 53 * {@code key} is null 57 public X500PrivateCredential(X509Certificate cert, PrivateKey key) { argument 58 if (cert == null || key == null ) 61 this.key = key; 76 X500PrivateCredential(X509Certificate cert, PrivateKey key, String alias) argument [all...] |
/openjdk9/hotspot/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.lir/src/org/graalvm/compiler/lir/constopt/ |
H A D | VariableMap.java | 44 public T get(Variable key) { argument 45 if (key == null || key.index >= content.size()) { 48 return content.get(key.index); 51 public T put(Variable key, T value) { argument 52 assert key != null : "Key cannot be null"; 54 while (key.index >= content.size()) { 57 return content.set(key.index, value); 60 public T remove(Variable key) { argument 61 assert key ! [all...] |
/openjdk9/jaxp/src/java.xml/share/classes/com/sun/org/apache/xerces/internal/xni/ |
H A D | Augmentations.java | 30 * information is identified by a String key. 46 * Add additional information identified by a key to the Augmentations structure. 48 * @param key Identifier, can't be <code>null</code> 51 * @return the previous value of the specified key in the Augmentations structure, 54 public Object putItem (String key, Object item); argument 58 * Get information identified by a key from the Augmentations structure 60 * @param key Identifier, can't be <code>null</code> 62 * @return the value to which the key is mapped in the Augmentations structure; 63 * <code>null</code> if the key is not mapped to any value. 65 public Object getItem(String key); argument 75 removeItem(String key) argument [all...] |