Lines Matching refs:key
43 // Identities hash: key is the identity name
46 // Identities hash: key is the public key
90 public synchronized Identity getIdentity(PublicKey key) {
91 if (key == null) {
94 return (Identity) keys.get(key);
110 PublicKey key = identity.getPublicKey();
111 if (key != null && keys.containsKey(key)) {
112 throw new KeyManagementException("key '" + key + "' is already used");
116 if (key != null) {
117 keys.put(key, identity);
140 PublicKey key = identity.getPublicKey();
142 if (key != null) {
143 contains = contains || keys.containsKey(key);
144 keys.remove(key);