/** * @see SecurityCache#addCacheEntry(Object, Map) */ public void addCacheEntry(Principal principal, Map<String, Object> map) throws SecurityCacheException { try { AuthCacheObject ao = new AuthCacheObject(map.get(SecurityConstants.CREDENTIAL), (Subject) map.get(SecurityConstants.SUBJECT)); cacheMap.put(principal, ao); } catch(Exception e) { throw new SecurityCacheException(e); } }
/** * @see SecurityCache#addCacheEntry(Object, Map) */ public void addCacheEntry(Principal principal, Map<String, Object> map) throws SecurityCacheException { try { AuthCacheObject ao = new AuthCacheObject(map.get(SecurityConstants.CREDENTIAL), (Subject) map.get(SecurityConstants.SUBJECT)); cacheMap.put(principal, ao); } catch(Exception e) { throw new SecurityCacheException(e); } }
throw new SecurityCacheException("Cache Miss"); Object cred = map.get(SecurityConstants.CREDENTIAL); AuthCacheObject ao = cacheMap.get(principal); throw new SecurityCacheException("Cache Validation Failed");
throw new SecurityCacheException(PicketBoxMessages.MESSAGES.cacheMissMessage()); Object cred = map.get(SecurityConstants.CREDENTIAL); AuthCacheObject ao = cacheMap.get(principal); throw new SecurityCacheException(PicketBoxMessages.MESSAGES.cacheValidationFailedMessage());