/** * 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; }