@Override
    public Optional<Boolean> authenticate(BasicCredentials c) throws AuthenticationException {
        if(c.getUsername().equals("zhangsan") && c.getPassword().equals("000000")){
            return Optional.of(true);
        }
        return Optional.absent();
    }