| /** |
| * |
| * Licensed to the Apache Software Foundation (ASF) under one |
| * or more contributor license agreements. See the NOTICE file |
| * distributed with this work for additional information |
| * regarding copyright ownership. The ASF licenses this file |
| * to you 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 org.apache.airavata.common.utils; |
| |
| /** |
| * Constants used in Airavata should go here. |
| */ |
| public final class Constants { |
| |
| public static final String USER_IN_SESSION = "userName"; |
| |
| |
| public static final String STAT = "stat"; |
| public static final String JOB = "job"; |
| //API security relates property names |
| public static final String IS_API_SECURED = "api.secured"; |
| public static final String SECURITY_MANAGER_CLASS = "security.manager.class"; |
| public static final String REMOTE_OAUTH_SERVER_URL = "remote.oauth.authorization.server"; |
| public static final String IS_TLS_ENABLED = "TLS.enabled"; |
| public static final String TLS_SERVER_PORT = "TLS.api.server.port"; |
| public static final String KEYSTORE_PATH = "keystore.path"; |
| public static final String KEYSTORE_PASSWORD = "keystore.password"; |
| public static final String TLS_CLIENT_TIMEOUT = "TLS.client.timeout"; |
| |
| public static final String IS_SHARING_TLS_ENABLED = "sharing.tls.enabled"; |
| |
| public static final String API_METHOD_NAME = "api.method.name"; |
| |
| //constants in XACML authorization response. |
| public static final String NOT_APPLICABLE = "NotApplicable"; |
| public static final String INDETERMINATE = "Indeterminate"; |
| public static final String DENY = "Deny"; |
| public static final String PERMIT = "Permit"; |
| |
| public static final String AUTHORIZATION_POLICY_NAME = "authorization.policy"; |
| |
| public static final String AUTHZ_CACHE_MANAGER_CLASS = "authz.cache.manager.class"; |
| |
| public static final String AUTHZ_CACHE_ENABLED = "authz.cache.enabled"; |
| |
| public static final String IN_MEMORY_CACHE_SIZE = "in.memory.cache.size"; |
| |
| public static final String LOCAL_DATA_LOCATION = "local.data.location"; |
| |
| //Names of the attributes that could be passed in the AuthzToken's claims map. |
| public static final String USER_NAME = "userName"; |
| public static final String GATEWAY_ID = "gatewayID"; |
| public static final String EMAIL = "email"; |
| public static final String ROLE = "role"; |
| |
| public static final String TRUSTED_CERT_LOCATION = "trusted.cert.location"; |
| public static final String TRUSTED_CERTIFICATE_SYSTEM_PROPERTY = "X509_CERT_DIR"; |
| |
| public static final String NEWLINE = System.getProperty("line.separator"); |
| |
| public static final String ENABLE_STREAMING_TRANSFER = "enable.streaming.transfer"; |
| } |