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"); } }
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 = 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()); } } }
moduleException = new IdentityTrustException(ae); moduleException = new IdentityTrustException("Identity Trust Validation failed"); else throw moduleException;
throw new IdentityTrustException(e);
/** * Whether the current caller can be trusted? * @return true - trust the caller, false - otherwise * @throws IdentityTrustException */ public boolean isTrusted() throws IdentityTrustException { TrustDecision td = TrustDecision.NotApplicable; IdentityTrustManager itm = securityContext.getIdentityTrustManager(); if(itm != null) { td = itm.isTrusted(securityContext); if(td == TrustDecision.Deny) throw new IdentityTrustException(PicketBoxMessages.MESSAGES.deniedByIdentityTrustMessage()); } return td == TrustDecision.Permit; }
/** * Whether the current caller can be trusted? * @return true - trust the caller, false - otherwise * @throws IdentityTrustException */ public boolean isTrusted() throws IdentityTrustException { TrustDecision td = TrustDecision.NotApplicable; IdentityTrustManager itm = securityContext.getIdentityTrustManager(); if(itm != null) { td = itm.isTrusted(securityContext); if(td == TrustDecision.Deny) throw new IdentityTrustException(PicketBoxMessages.MESSAGES.deniedByIdentityTrustMessage()); } return td == TrustDecision.Permit; }
/** * Whether the current caller can be trusted? * @return true - trust the caller, false - otherwise * @throws IdentityTrustException */ public boolean isTrusted() throws IdentityTrustException { TrustDecision td = TrustDecision.NotApplicable; IdentityTrustManager itm = securityContext.getIdentityTrustManager(); if(itm != null) { td = itm.isTrusted(securityContext); if(td == TrustDecision.Deny) throw new IdentityTrustException(PicketBoxMessages.MESSAGES.deniedByIdentityTrustMessage()); } return td == TrustDecision.Permit; }
moduleException = new IdentityTrustException(ae); moduleException = new IdentityTrustException(PicketBoxMessages.MESSAGES.identityTrustValidationFailedMessage()); else throw moduleException;