Lines Matching refs:key
45 // Identities hash: key is the identity name
48 // Identities hash: key is the public key
93 public synchronized Identity getIdentity(PublicKey key) {
94 if (key == null) {
97 return (Identity) keys.get(key);
114 PublicKey key = identity.getPublicKey();
115 if (key != null && keys.containsKey(key)) {
116 throw new KeyManagementException(Messages.getString("security.94", key)); //$NON-NLS-1$
120 if (key != null) {
121 keys.put(key, identity);
144 PublicKey key = identity.getPublicKey();
146 if (key != null) {
147 contains = contains || keys.containsKey(key);
148 keys.remove(key);