@Override
	public UserDetails loadUserDetails(SecurityServletContext context, SecurityDomainConfiguration configuration) throws SecurityRuntimeException {
		try {
			HttpSession session = context.getRequest().getSession(false);
			if(session != null) {
				String[] nameArr = configuration.getSession();
				Object obj = null;
				for(int i = 0; i < nameArr.length; i++) {
					obj = session.getAttribute(nameArr[i]);
					if(obj != null) {
						return (UserDetails) obj;
					}
				}
			}
			return null;
		} catch (Exception e) {
			throw new SecurityRuntimeException("获取UserDetails异常", e);
		}
	}