Changeset 1391 for branches/GNU/src/gcc/libjava/java/security/Provider.java
- Timestamp:
- Apr 27, 2004, 8:39:34 PM (22 years ago)
- Location:
- branches/GNU/src/gcc
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
libjava/java/security/Provider.java (modified) (5 diffs, 1 prop)
Legend:
- Unmodified
- Added
- Removed
-
branches/GNU/src/gcc
- Property svn:ignore
-
old new 26 26 configure.vr 27 27 configure.vrs 28 28 29 Makefile 29 dir.info30 30 lost+found 31 31 update.out
-
- Property svn:ignore
-
branches/GNU/src/gcc/libjava/java/security/Provider.java
-
Property cvs2svn:cvs-rev
changed from
1.1to1.1.1.2
r1390 r1391 1 1 /* Provider.java -- Security provider information 2 Copyright (C) 1998, 1999, 2000 Free Software Foundation, Inc.2 Copyright (C) 1998, 1999, 2000 Free Software Foundation, Inc. 3 3 4 4 This file is part of GNU Classpath. … … 57 57 public abstract class Provider extends Properties implements Serializable 58 58 { 59 60 59 61 /** 60 62 * This is a textual description of the provider … … 118 120 119 121 /** 120 * This method sets the specified key to have the specified value. 121 * 122 * @param key The property key 123 * @param value The property value 124 * 125 * @return The previous value for this key, or <code>null</code> if no previous value. 122 * Sets the key property to have the specified value. 123 * <p> 124 * <bold>NOT IMPLEMENTED YET</bold>[ 125 * First, if there is a security manager, its <code>checkSecurityAccess</code> 126 * method is called with the string "putProviderProperty."+name, where name is 127 * the provider name, to see if it's ok to set this provider's property 128 * values. 129 * If the default implementation of <code>checkSecurityAccess</code> is used 130 * (that is, that method is not overriden), then this results in a call to the 131 * security manager's <code>checkPermission</code> method with a 132 * <code>SecurityPermission("putProviderProperty."+name)</code> 133 * permission.<br>] 134 * 135 * @param key The property key. 136 * @param value The property value. 137 * 138 * @return The previous value of the specified property (<code>key</code>), 139 * or <code>null</code> if it did not have one. 140 * @throws SecurityException If a security manager exists and its 141 * {@link java.lang.SecurityManager.checkSecurityAccess(java.lang.String)} 142 * method denies access to set property values. 143 * @since Classpath 0.4+cvs, JDK 1.2 144 * @see java.lang.Object.equals(Object) 145 * @see java.util.Hashtable.get(Object) 126 146 */ 127 147 public Object put(Object key, Object value) 128 148 { 129 return (super.put(key, value)); 149 return super.put(toCanonicalKey(key), value); 150 } 151 152 // overrides same in java.util.Hashtable 153 public Object get(Object key) 154 { 155 return super.get(toCanonicalKey(key)); 130 156 } 131 157 … … 136 162 * @param key The key to remove 137 163 * 138 * @return The previous value for this key, or <code>null</code> if no previous value. 164 * @return The previous value for this key, or <code>null</code> if no 165 * previous value. 139 166 */ 140 167 public Object remove(Object key) 141 168 { 142 return (super.remove(key));169 return (key)); 143 170 } 144 171 … … 165 192 version); 166 193 } 194 195 196 197 198 199 200 201 167 202 } -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.
