2 * Copyright (c) 2014, 2015 Hewlett-Packard Development Company, L.P. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
9 package org.opendaylight.aaa.sts;
11 import javax.servlet.http.HttpServletRequest;
12 import org.apache.oltu.oauth2.common.OAuth;
13 import org.apache.oltu.oauth2.common.validators.AbstractValidator;
16 * A refresh token validator that does not enforce client identification.
21 public class AnonymousRefreshTokenValidator extends AbstractValidator<HttpServletRequest> {
23 public AnonymousRefreshTokenValidator() {
24 requiredParams.add(OAuth.OAUTH_GRANT_TYPE);
25 requiredParams.add(OAuth.OAUTH_REFRESH_TOKEN);
27 enforceClientAuthentication = false;