/** * Compare this SimplePrincipal's name against another Principal. If system property * org.jboss.security.simpleprincipal.equals.override is set to true will only * compare instances of SimplePrincipals. * @return true if name equals another.getName(); */ @Override public boolean equals(Object another) { if (!(another instanceof Principal)) return false; if ("true".equals(SecurityActions.getProperty(OVERRIDE_EQUALS_BEHAVIOR, "false"))) { if (!(another instanceof SimplePrincipal)) return false; } String anotherName = ((Principal) another).getName(); boolean equals = false; if (name == null) equals = anotherName == null; else equals = name.equals(anotherName); return equals; }
ClassLoader loader = SecurityActions.getContextClassLoader(); if (loader != null) url = loader.getResource(storeURL);
ClassLoader loader = SecurityActions.getContextClassLoader(); Class clazz = loader.loadClass(keyStoreProvider); Class[] ctorSig = {String.class};