public Authentication getAuthentication(String token) {
		if (null != token) {
			TokenContainer container = tokens.get(token);
			if (null != container) {
				if (container.isValid()) {
					return container.getAuthentication();
				} else {
					logout(token);
				}
			}
		}
		return null;
	}
public Authentication getAuthentication ( String token ) { if ( null != token ) { TokenContainer container = tokens . get ( token ) ; if ( null != container ) { if ( container . isValid ( ) ) { return container . getAuthentication ( ) ; } else { logout ( token ) ; } } } return null ; }
Get the authentication for a specific token.

@param token token
@return authentication if any