public Class<?> run() throws PrivilegedActionException { try { return getContextClassLoader().loadClass(name); } catch ( Exception e) { throw new PrivilegedActionException(e); } } });
public Class<?> run() throws PrivilegedActionException { try { return getContextClassLoader().loadClass(name); } catch ( Exception e) { throw new PrivilegedActionException(e); } } });
@SuppressWarnings({"unchecked", "rawtypes"}) private IdentityTrustModule instantiateModule(ClassLoader cl, String name, Map map) throws Exception { IdentityTrustModule im = null; try { Class clazz = SecurityActions.loadClass(cl, name); im = (IdentityTrustModule)clazz.newInstance(); } catch ( Exception e) { PicketBoxLogger.LOGGER.debugIgnoredException(e); } if(im == null) throw new LoginException(PicketBoxMessages.MESSAGES.failedToInstantiateClassMessage(IdentityTrustModule.class)); im.initialize(this.securityContext, this.callbackHandler, this.sharedState,map); return im; }
@SuppressWarnings("unchecked") private IdentityTrustModule instantiateModule(String name, Map map) throws Exception { IdentityTrustModule im = null; ClassLoader tcl = SecurityActions.getContextClassLoader(); try { Class clazz = tcl.loadClass(name); im = (IdentityTrustModule)clazz.newInstance(); } catch ( Exception e) { log.debug("Error instantiating IdentityTrustModule:",e); } if(im == null) throw new IllegalStateException("IdentityTrustModule has not " + "been instantiated"); im.initialize(this.securityContext, this.callbackHandler, this.sharedState,map); return im; }