Searched refs:key (Results 26 - 50 of 1411) sorted by relevance

1234567891011>>

/openjdk7/langtools/src/share/classes/com/sun/tools/javac/api/
H A DFormattable.java59 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;
/openjdk7/jdk/src/share/classes/javax/crypto/spec/
H A DSecretKeySpec.java34 * 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
91 SecretKeySpec(byte[] key, String algorithm) argument
140 SecretKeySpec(byte[] key, int offset, int len, String algorithm) argument
[all...]
/openjdk7/jdk/src/solaris/classes/sun/awt/X11/
H A DXCreateWindowParams.java47 public XCreateWindowParams putIfNull(Object key, Object value) { argument
48 if (!containsKey(key)) {
49 put(key, value);
53 public XCreateWindowParams putIfNull(Object key, int value) { argument
54 if (!containsKey(key)) {
55 put(key, Integer.valueOf(value));
59 public XCreateWindowParams putIfNull(Object key, long value) { argument
60 if (!containsKey(key)) {
61 put(key, Long.valueOf(value));
66 public XCreateWindowParams add(Object key, Objec argument
70 add(Object key, int value) argument
74 add(Object key, long value) argument
78 delete(Object key) argument
[all...]
/openjdk7/jdk/src/share/classes/sun/security/pkcs11/
H A DP11KeyFactory.java60 * Convert an arbitrary key of algorithm into a P11Key of token.
63 static P11Key convertKey(Token token, Key key, String algorithm) argument
65 return (P11Key)token.getKeyFactory(algorithm).engineTranslateKey(key);
69 protected final <T extends KeySpec> T engineGetKeySpec(Key key, Class<T> keySpec) argument
72 if ((key == null) || (keySpec == null)) {
74 ("key and keySpec must not be null");
80 return (T)implGetSoftwareFactory().getKeySpec(key, keySpec);
82 throw new InvalidKeySpecException("Could not encode key", e);
85 // first translate into a key of this token, if it is not already
88 p11Key = (P11Key)engineTranslateKey(key);
107 engineTranslateKey(Key key) argument
141 implGetPublicKeySpec(P11Key key, Class keySpec, Session[] session) argument
144 implGetPrivateKeySpec(P11Key key, Class keySpec, Session[] session) argument
147 implTranslatePublicKey(PublicKey key) argument
150 implTranslatePrivateKey(PrivateKey key) argument
[all...]
/openjdk7/jaxp/src/com/sun/org/apache/xerces/internal/impl/dv/
H A DInvalidDatatypeFacetException.java41 * @param key error code
44 public InvalidDatatypeFacetException(String key, Object[] args) { argument
45 super(key, args);
H A DInvalidDatatypeValueException.java81 * @param key error code
84 public InvalidDatatypeValueException(String key, Object[] args) { argument
85 super(key, args);
/openjdk7/jdk/src/share/classes/com/sun/imageio/plugins/common/
H A DI18N.java30 public static String getString(String key) { argument
31 return getString("com.sun.imageio.plugins.common.I18N", resource_name, key);
/openjdk7/jaxp/src/com/sun/org/apache/xml/internal/serializer/
H A DOutputPropertyUtils.java40 * Searches for the boolean property with the specified key in the property list.
41 * If the key is not found in this property list, the default property list,
46 * @param key the property key.
51 public static boolean getBooleanProperty(String key, Properties props) argument
54 String s = props.getProperty(key);
63 * Searches for the int property with the specified key in the property list.
64 * If the key is not found in this property list, the default property list,
69 * @param key the property key
74 getIntProperty(String key, Properties props) argument
[all...]
/openjdk7/jdk/src/share/classes/javax/script/
H A DSimpleBindings.java67 * Sets the specified key/value in the underlying <code>map</code> 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 <tt>true</tt> if and only if
112 * this map contains a mapping for a key <t
124 containsKey(Object key) argument
160 get(Object key) argument
197 remove(Object key) argument
212 checkKey(Object key) argument
[all...]
H A DBindings.java30 * A mapping of key/value pairs, all of whose keys are
56 * if toMerge map is null or if some key in the map is null.
58 * if some key in the map is an empty String.
64 * key. More formally, returns <tt>true</tt> if and only if
65 * this map contains a mapping for a key <tt>k</tt> such that
66 * <tt>(key==null ? k==null : key.equals(k))</tt>. (There can be
69 * @param key key whose presence in this map is to be tested.
71 * key
77 containsKey(Object key) argument
100 get(Object key) argument
124 remove(Object key) argument
[all...]
/openjdk7/jdk/src/share/classes/java/util/concurrent/
H A DConcurrentMap.java45 * {@code ConcurrentMap} as a key or value
61 * If the specified key is not already associated
65 * if (!map.containsKey(key))
66 * return map.put(key, value);
68 * return map.get(key);</pre>
71 * @param key key with which the specified value is to be associated
72 * @param value value to be associated with the specified key
73 * @return the previous value associated with the specified key, or
74 * <tt>null</tt> if there was no mapping for the key
88 putIfAbsent(K key, V value) argument
112 remove(Object key, Object value) argument
137 replace(K key, V oldValue, V newValue) argument
164 replace(K key, V value) argument
[all...]
/openjdk7/jdk/src/share/classes/com/sun/jmx/snmp/
H A DThreadContext.java58 * value that was most recently pushed with the given key.</p>
70 "previous" and "key" both null. There is a different sentinel
73 Because a null key indicates the sentinel, we reject attempts to
74 push context entries with a null key.
100 private /*final*/ String key; field in class:ThreadContext
103 private ThreadContext(ThreadContext previous, String key, Object value) { argument
105 this.key = key;
110 * <p>Get the Object that was most recently pushed with the given key.</p>
112 * @param key th
124 get(String key) argument
146 contains(String key) argument
157 contextContaining(String key) argument
211 push(String key, Object value) argument
[all...]
/openjdk7/jdk/test/sun/security/rsa/
H A DTestKeyFactory.java53 * 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...]
/openjdk7/jaxp/src/com/sun/org/apache/xerces/internal/xni/
H A DAugmentations.java29 * information is identified by a String key.
45 * Add additional information identified by a key to the Augmentations structure.
47 * @param key Identifier, can't be <code>null</code>
50 * @return the previous value of the specified key in the Augmentations structure,
53 public Object putItem (String key, Object item); argument
57 * Get information identified by a key from the Augmentations structure
59 * @param key Identifier, can't be <code>null</code>
61 * @return the value to which the key is mapped in the Augmentations structure;
62 * <code>null</code> if the key is not mapped to any value.
64 public Object getItem(String key); argument
74 removeItem(String key) argument
[all...]
/openjdk7/jdk/src/share/classes/javax/security/auth/x500/
H A DX500PrivateCredential.java34 * It associates an X.509 certificate, corresponding private key and the
35 * KeyStore alias used to reference that exact key pair in the KeyStore.
42 private PrivateKey key; field in class:X500PrivateCredential
47 * a private key and the KeyStore alias.
50 * @param key PrivateKey for the certificate
52 * <code>key</code> is null
56 public X500PrivateCredential(X509Certificate cert, PrivateKey key) { argument
57 if (cert == null || key == null )
60 this.key = key;
75 X500PrivateCredential(X509Certificate cert, PrivateKey key, String alias) argument
[all...]
/openjdk7/jdk/src/share/classes/java/util/
H A DDictionary.java31 * Every key and every value is an object. In any one <tt>Dictionary</tt>
32 * object, every key is associated with at most one value. Given a
33 * <tt>Dictionary</tt> and a key, the associated element can be looked up.
34 * Any non-<code>null</code> 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</code> if the key i
112 get(Object key) argument
141 put(K key, V value) argument
154 remove(Object key) argument
[all...]
/openjdk7/jdk/src/share/classes/com/sun/script/util/
H A DBindingsBase.java47 public Object remove(Object key) { argument
48 checkKey(key);
49 return removeImpl((String)key);
52 public Object put(String key, Object value) { argument
53 checkKey(key);
54 return putImpl(key, value);
59 String key = entry.getKey();
60 checkKey(key);
71 protected void checkKey(Object key) { argument
72 if (key
[all...]
/openjdk7/jdk/src/share/classes/com/sun/crypto/provider/
H A DDESKeyFactory.java36 * This class implements the DES key factory of the Sun provider.
51 * Generates a <code>SecretKey</code> object from the provided key
52 * specification (key material).
54 * @param keySpec the specification (key material) of the secret key
56 * @return the secret key
58 * @exception InvalidKeySpecException if the given key specification
59 * is inappropriate for this key factory to produce a public key.
68 ("Inappropriate key specificatio
95 engineGetKeySpec(SecretKey key, Class keySpec) argument
136 engineTranslateKey(SecretKey key) argument
[all...]
H A DDESedeKeyFactory.java36 * This class implements the DES-EDE key factory of the Sun provider.
51 * Generates a <code>SecretKey</code> object from the provided key
52 * specification (key material).
54 * @param keySpec the specification (key material) of the secret key
56 * @return the secret key
58 * @exception InvalidKeySpecException if the given key specification
59 * is inappropriate for this key factory to produce a public key.
72 ("Inappropriate key specificatio
95 engineGetKeySpec(SecretKey key, Class keySpec) argument
133 engineTranslateKey(SecretKey key) argument
[all...]
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/ws/policy/
H A DEffectivePolicyModifier.java47 * Replaces current effective policy on the service scope (identified by a {@code key} parameter) with the new efective
48 * policy provided as a second input parameter. If no policy was defined for the presented key, the new policy is simply
49 * stored with the key.
51 * @param key identifier of the scope the effective policy should be replaced with the new one. Must not be {@code null}.
57 final PolicyMapKey key, final Policy newEffectivePolicy) {
58 getMap().setNewEffectivePolicyForScope(PolicyMap.ScopeType.SERVICE, key, newEffectivePolicy);
62 * Replaces current effective policy on the endpoint scope (identified by a {@code key} parameter) with the new efective
65 * @param key identifier of the scope the effective policy should be replaced with the new one. Must not be {@code null}.
71 final PolicyMapKey key, final Policy newEffectivePolicy) {
72 getMap().setNewEffectivePolicyForScope(PolicyMap.ScopeType.ENDPOINT, key, newEffectivePolic
56 setNewEffectivePolicyForServiceScope( final PolicyMapKey key, final Policy newEffectivePolicy) argument
70 setNewEffectivePolicyForEndpointScope( final PolicyMapKey key, final Policy newEffectivePolicy) argument
85 setNewEffectivePolicyForOperationScope( final PolicyMapKey key, final Policy newEffectivePolicy) argument
100 setNewEffectivePolicyForInputMessageScope( final PolicyMapKey key, final Policy newEffectivePolicy) argument
115 setNewEffectivePolicyForOutputMessageScope( final PolicyMapKey key, final Policy newEffectivePolicy) argument
130 setNewEffectivePolicyForFaultMessageScope( final PolicyMapKey key, final Policy newEffectivePolicy) argument
[all...]
H A DPolicyMapExtender.java46 public void putServiceSubject(final PolicyMapKey key, final PolicySubject subject) { argument
47 getMap().putSubject(PolicyMap.ScopeType.SERVICE, key, subject);
50 public void putEndpointSubject(final PolicyMapKey key, final PolicySubject subject) { argument
51 getMap().putSubject(PolicyMap.ScopeType.ENDPOINT, key, subject);
54 public void putOperationSubject(final PolicyMapKey key, final PolicySubject subject) { argument
55 getMap().putSubject(PolicyMap.ScopeType.OPERATION, key, subject);
58 public void putInputMessageSubject(final PolicyMapKey key, final PolicySubject subject) { argument
59 getMap().putSubject(PolicyMap.ScopeType.INPUT_MESSAGE, key, subject);
62 public void putOutputMessageSubject(final PolicyMapKey key, final PolicySubject subject) { argument
63 getMap().putSubject(PolicyMap.ScopeType.OUTPUT_MESSAGE, key, subjec
66 putFaultMessageSubject(final PolicyMapKey key, final PolicySubject subject) argument
[all...]
/openjdk7/jdk/src/share/classes/com/sun/net/httpserver/
H A DHeaders.java35 * the value associated with each key is a {@link List}&lt;{@link String}&gt; with one
38 * For example, if a response header instance contains one key "HeaderName" with two values "value1 and value2"
50 * <li>{@link #add(String,String)} adds the given header value to the list for the given key</li>
56 * Null values can be represented as either a null entry for the key (i.e. the list is null) or
57 * where the key has a list, but one (or more) of the list's values is null. Null values are output
58 * as a header line containing the key but no associated value.
67 /* Normalize the key by converting to following form.
69 * key is presumed to be ASCII
71 private String normalize (String key) { argument
72 if (key
95 containsKey(Object key) argument
109 get(Object key) argument
119 getFirst(String key) argument
127 put(String key, List<String> value) argument
138 add(String key, String value) argument
155 set(String key, String value) argument
162 remove(Object key) argument
[all...]
/openjdk7/jdk/src/share/classes/sun/nio/ch/
H A DMembershipRegistry.java57 for (MembershipKeyImpl key: keys) {
58 if (key.networkInterface().equals(interf)) {
60 // existing key or detect conflict
62 if (key.sourceAddress() == null)
63 return key;
67 // already have source-specific membership so return key
69 if (key.sourceAddress() == null)
71 if (source.equals(key.sourceAddress()))
72 return key;
81 * Add membership to the registry, returning a new membership key
83 add(MembershipKeyImpl key) argument
102 remove(MembershipKeyImpl key) argument
[all...]
/openjdk7/jdk/test/sun/security/pkcs11/rsa/
H A DTestKeyFactory.java54 * Test that key1 (reference key) and key2 (key to be tested) are
78 private static void testPublic(KeyFactory kf, PublicKey key) throws Exception { argument
79 System.out.println("Testing public key...");
80 PublicKey key2 = (PublicKey)kf.translateKey(key);
81 KeySpec rsaSpec = kf.getKeySpec(key, RSAPublicKeySpec.class);
83 KeySpec x509Spec = kf.getKeySpec(key, X509EncodedKeySpec.class);
85 KeySpec x509Spec2 = new X509EncodedKeySpec(key.getEncoded());
87 testKey(key, key);
94 testPrivate(KeyFactory kf, PrivateKey key) argument
119 test(KeyFactory kf, Key key) argument
[all...]
/openjdk7/hotspot/agent/src/share/classes/sun/jvm/hotspot/debugger/cdbg/basic/
H A DLazyBlockSym.java31 private Object key; field in class:LazyBlockSym
33 public LazyBlockSym(Object key) { argument
35 this.key = key;
41 public Object getKey() { return key; }

Completed in 89 milliseconds

1234567891011>>