2015-05-18 19:15:58 +02:00
|
|
|
package org.gcube.common.authorization.client;
|
|
|
|
|
|
|
|
import org.gcube.common.authorization.client.proxy.AuthorizationProxy;
|
2015-11-24 19:26:37 +01:00
|
|
|
import org.gcube.common.authorization.client.proxy.DefaultAuthorizationProxy;
|
2015-05-18 19:15:58 +02:00
|
|
|
|
|
|
|
public class Constants {
|
|
|
|
|
|
|
|
/** Service name. */
|
|
|
|
public static final String SERVICE_NAME = "AuthorizationService";
|
|
|
|
|
2016-01-22 17:28:17 +01:00
|
|
|
public static String CLIENT_ID_PARAM= "client_id";
|
2015-05-18 19:15:58 +02:00
|
|
|
|
2015-11-24 19:26:37 +01:00
|
|
|
public static String CONTEXT_PARAM= "context";
|
2015-05-18 19:15:58 +02:00
|
|
|
|
2015-11-24 19:26:37 +01:00
|
|
|
public static String ROLES_PARAM= "roles";
|
2015-05-18 19:15:58 +02:00
|
|
|
|
2016-06-29 14:54:12 +02:00
|
|
|
public static final String TOKEN_HEADER_ENTRY = "gcube-token";
|
2015-05-18 19:15:58 +02:00
|
|
|
|
2015-06-04 18:49:59 +02:00
|
|
|
public static final long TIME_TO_LIVE_CACHE_IN_MILLIS = (60*1000)*60; //1 hour
|
|
|
|
|
2015-11-24 19:26:37 +01:00
|
|
|
public static AuthorizationProxy authorizationService() {
|
|
|
|
return new DefaultAuthorizationProxy();
|
2015-05-18 19:15:58 +02:00
|
|
|
}
|
|
|
|
}
|