private void invokeAbort() throws IdentityTrustException { int length = modules.size(); for(int i = 0; i < length; i++) { IdentityTrustModule module = (IdentityTrustModule)modules.get(i); boolean bool = module.abort(); if(!bool) throw new IdentityTrustException("abort on modules failed"); } } }
private void invokeCommit() throws IdentityTrustException { int length = modules.size(); for(int i = 0; i < length; i++) { IdentityTrustModule module = (IdentityTrustModule)modules.get(i); boolean bool = module.commit(); if(!bool) throw new IdentityTrustException("commit on modules failed"); } }
@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; }
try decision = module.isTrusted();
try decision = module.isTrusted();
private void invokeCommit() throws IdentityTrustException { int length = modules.size(); for(int i = 0; i < length; i++) { IdentityTrustModule module = modules.get(i); boolean bool = module.commit(); if(!bool) throw new IdentityTrustException(PicketBoxMessages.MESSAGES.moduleCommitFailedMessage()); } }
private void invokeAbort() throws IdentityTrustException { int length = modules.size(); for(int i = 0; i < length; i++) { IdentityTrustModule module = modules.get(i); boolean bool = module.abort(); if(!bool) throw new IdentityTrustException(PicketBoxMessages.MESSAGES.moduleAbortFailedMessage()); } } }
@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; }