File | Line |
---|
org/apache/geronimo/security/keystore/FileKeystoreManager.java | 248 |
org/apache/geronimo/security/keystore/FileKeystoreManager.java | 301 |
}
KeystoreInstance trustInstance = trustStore == null ? null : getKeystore(trustStore);
if(trustInstance != null && trustInstance.isKeystoreLocked()) {
throw new KeystoreIsLocked("Keystore '"+trustStore+"' is locked; please use the keystore page in the admin console to unlock it");
}
// OMG this hurts, but it causes ClassCastExceptions elsewhere unless done this way!
try {
Class cls = loader.loadClass("javax.net.ssl.SSLContext");
Object ctx = cls.getMethod("getInstance", new Class[] {String.class}).invoke(null, new Object[]{protocol});
Class kmc = loader.loadClass("[Ljavax.net.ssl.KeyManager;");
Class tmc = loader.loadClass("[Ljavax.net.ssl.TrustManager;");
Class src = loader.loadClass("java.security.SecureRandom");
cls.getMethod("init", new Class[]{kmc, tmc, src}).invoke(ctx, new Object[]{keyInstance.getKeyManager(algorithm, keyAlias, null), |
File | Line |
---|
org/apache/geronimo/security/realm/providers/PropertiesFileLoginModule.java | 93 |
org/apache/geronimo/security/realm/providers/CertificatePropertiesFileLoginModule.java | 102 |
Properties temp = new Properties();
stream = groupFile.toURL().openStream();
temp.load(stream);
stream.close();
Enumeration e = temp.keys();
while (e.hasMoreElements()) {
String groupName = (String) e.nextElement();
String[] userList = ((String) temp.get(groupName)).split(",");
Set userset = (Set) groups.get(groupName);
if (userset == null) {
userset = new HashSet();
groups.put(groupName, userset);
}
for (int i = 0; i < userList.length; i++) { |
File | Line |
---|
org/apache/geronimo/security/jaas/server/JaasSessionId.java | 60 |
org/apache/geronimo/security/SubjectId.java | 60 |
buffer.append(subjectId);
buffer.append(":0x");
for (int i = 0; i < hash.length; i++) {
buffer.append(HEXCHAR[(hash[i]>>>4)&0x0F]);
buffer.append(HEXCHAR[(hash[i] )&0x0F]);
}
buffer.append(']');
name = buffer.toString();
}
return name;
}
/**
* Returns a hashcode for this LoginModuleId.
*
* @return a hashcode for this LoginModuleId.
*/
public int hashCode() {
if (hashCode == 0) {
for (int i = 0; i < hash.length; i++) {
hashCode ^= hash[i];
}
hashCode ^= subjectId.hashCode(); |