View Javadoc
1   /**
2    * This Source Code Form is subject to the terms of the Mozilla Public
3    * License, v. 2.0. If a copy of the MPL was not distributed with this
4    * file, You can obtain one at http://mozilla.org/MPL/2.0/.
5    *
6    * If it is not possible or desirable to put the notice in a particular
7    * file, then You may include the notice in a location (such as a LICENSE
8    * file in a relevant directory) where a recipient would be likely to look
9    * for such a notice.
10  
11   * 
12   */
13   
14  /*  ---------------------------------------------------------------------------
15   *  U.S. Government, Department of the Army
16   *  Army Materiel Command
17   *  Research Development Engineering Command
18   *  Communications Electronics Research Development and Engineering Center
19   *  ---------------------------------------------------------------------------
20   */
21  package org.miloss.fgsms.common;
22  
23  /**
24   * A collection of constants, also versioning information
25   *
26   * @author AO
27   */
28  public class Constants {
29      public static final String CHARSET="UTF-8";
30      /**
31       * Used for OS Agent Property Pair callbacks
32       * @since 6.3
33       */
34      public static final String PROPERTYPAIR_OS_AGENT_CALLBACK_URL = "org.miloss.fgsms.osagent.callbackaddress";
35      /**
36       * @since 6.3
37       */
38      public static final String PROPERTYPAIR_OS_AGENT_STARTED = "org.miloss.fgsms.osagent.startedat.epoch";
39      public static final String oneway = "fgsms.oneway";
40      public static final String DAS_META = "DASv8.wsdl";
41      public static final String DCS_META = "DCS8.wsdl";
42      public static final String PCS_META = "PCS8.wsdl";
43      public static final String RS_META = "RSv6.wsdl";
44      public static final String SS_META = "Statusv6.wsdl";
45      public static final String ARS_META = "ARSv1.wsdl";
46      public static final String ACS_META = "AgentConf.wsdl";
47      public static final String ACSA_META = "AgentConfAdmin.wsdl";
48      /**
49       * @since 6.3
50       */
51      public static final String RACS_META = "RemoteAgentCallback.wsdl";
52      /**
53       * This is the current build number, it is replaced at build time by the
54       * maven and includes the version, branch, timestamp and username of the person that build it
55       */
56      public static final String Version = "7.0.0 UNKNOWN_BRANCH 2017.03.11 23:39.";
57      public static final String LoggerName = "fgsms.Agents";
58      public static final String key = "fgsms.messagekey";
59      public static final String urlKEY = "fgsms.requesturl";
60      @Deprecated
61      public static final String transactionRecordedKey = "fgsms.transactionrecord";
62      /**
63       * Http header
64       */
65      public static final String transactionthreadKey = "fgsms.transactionthreadid";
66      /**
67       * http header
68       */
69      public static final String relatedtransactionKey = "fgsms.relatedtransaction";
70      @Deprecated
71      public static final String MessageId = "fgsms.messageid";
72      public static final String DCSaction = "urn:org:miloss:fgsms:services:interfaces:dataCollector/dataCollectorService/AddData";
73      public static final String PCSaction = "urn:org:miloss:fgsms:services:interfaces:policyConfiguration/policyConfigurationService/GetServicePolicy";
74      public static final String DCSaction3 = "{urn:org:miloss:fgsms:services:interfaces:dataCollector}AddMoreData";
75      public static final String DCSaction4 = "urn:org:miloss:fgsms:services:interfaces:dataCollector/dataCollectorService/AddMoreData";
76      public static final String DCSaction2 = "{urn:org:miloss:fgsms:services:interfaces:dataCollector}AddData";
77      public static final String PCSaction2 = "{urn:org:miloss:fgsms:services:interfaces:policyConfiguration}GetServicePolicy";
78      public static final String PropertyAuthModeKey = "fgsms.AuthMode";
79      public static final String HTTPQueryName = "QueryString";
80      /**
81       * Http header
82       */
83      public static final String CAC_DELEGATE_Authorization_Header = "fgsms.authorization";
84      public static final String Undetermineable = "urn:undeterminable";
85      /*
86       * Roles
87       */
88      public static final String ROLES_GLOBAL_ADMINISTRATOR = "fgsms_GLOBAL_ADMINISTRATOR";
89      public static final String ROLES_GLOBAL_AGENT = "fgsms_GLOBAL_AGENT";
90      public static final String ROLES_GLOBAL_AUDITOR = "fgsms_GLOBAL_AUDITOR";
91      public static final String ROLES_GLOBAL_WRITE = "fgsms_GLOBAL_WRITE";
92      public static final String ROLES_GLOBAL_READ = "fgsms_GLOBAL_READ";
93      
94      public static final String WS_ADDRESSING_2004_08 = "http://schemas.xmlsoap.org/ws/2004/08/addressing";
95      public static final String WS_ADDRESSING_2005_08 = "http://www.w3.org/2005/08/addressing";
96      public static final String DomainUnspecified = "UNSPECIFIED";
97      public static final String UNSPECIFIED="unspecified";
98  
99      public enum AuthMode {
100 
101         None, PKI, UsernamePassword
102     }
103     public static final String DiscoveryScopeUsernamePassword = "org.miloss.fgsms.authentication.usernamePassword";
104     public static final String DiscoveryScopeCACPKI = "org.miloss.fgsms.authentication.X509PKI";
105     /* for internal use only, primiarily for junit tests 
106      @since 6.3*/
107     public static final String INTERNAL_DEFAULT_CONFIG_DATABASE_NAME = "fgsms_config";
108     /* for internal use only, primiarily for junit tests 
109      @since 6.3*/
110     public static final String INTERNAL_DEFAULT_PERFORMANCE_DATABASE_NAME = "fgsms_performance";
111     /* for internal use only, primiarily for junit tests 
112      @since 6.3*/
113     public static final String INTERNAL_DEFAULT_QUARTZ_DATABASE_NAME = "fgsms_quartz";
114     
115    
116     
117 }