com.ge.predix.uaa.token.lib.Claims Maven / Gradle / Ivy
/*******************************************************************************
* Copyright 2017 General Electric Company
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*******************************************************************************/
package com.ge.predix.uaa.token.lib;
/**
*
* Constants that can be used to work with claims from OAuth2 Bearer and OpenID Connect tokens.
*
*
* @author Joel D'sa
* @author Dave Syer
*
*/
public final class Claims {
public static final String USER_ID = "user_id";
public static final String USER_NAME = "user_name";
public static final String NAME = "name";
public static final String GIVEN_NAME = "given_name";
public static final String FAMILY_NAME = "family_name";
public static final String EMAIL = "email";
public static final String CLIENT_ID = "client_id";
public static final String EXP = "exp";
public static final String AUTHORITIES = "authorities";
public static final String SCOPE = "scope";
public static final String JTI = "jti";
public static final String AUD = "aud";
public static final String SUB = "sub";
public static final String ISS = "iss";
public static final String IAT = "iat";
public static final String CID = "cid";
public static final String GRANT_TYPE = "grant_type";
public static final String ADDITIONAL_AZ_ATTR = "az_attr";
public static final String AZP = "azp";
public static final String AUTH_TIME = "auth_time";
public static final String ZONE_ID = "zid";
public static final String REVOCATION_SIGNATURE = "rev_sig";
private Claims() {
//prevent instantiation
}
}