forked from apache/incubator-kie-drools
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[RHBPMS-4312] KeyStore integration into KIE (apache#1588)
* [RHBPMS-4312] Added loading passwords from a keystore * [RHBPMS-4312] Added licence header
- Loading branch information
1 parent
96a1951
commit e965011
Showing
5 changed files
with
198 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
drools-core/src/main/java/org/drools/core/util/KeyStoreConstants.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,48 @@ | |||
/* | |||
* Copyright 2017 Red Hat, Inc. and/or its affiliates. | |||
* | |||
* 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 org.drools.core.util; | |||
|
|||
public class KeyStoreConstants { | |||
|
|||
// true if packages should be signed during serialization | |||
public static final String PROP_SIGN = "drools.serialization.sign"; | |||
// the URL to the key store where the private key is stored | |||
public static final String PROP_PVT_KS_URL = "drools.serialization.private.keyStoreURL"; | |||
// the key store password | |||
public static final String PROP_PVT_KS_PWD = "drools.serialization.private.keyStorePwd"; | |||
// the private key identifier | |||
public static final String PROP_PVT_ALIAS = "drools.serialization.private.keyAlias"; | |||
// the private key password | |||
public static final String PROP_PVT_PWD = "drools.serialization.private.keyPwd"; | |||
// the URL to the key store where the public key is stored | |||
public static final String PROP_PUB_KS_URL = "drools.serialization.public.keyStoreURL"; | |||
// the key store password | |||
public static final String PROP_PUB_KS_PWD = "drools.serialization.public.keyStorePwd"; | |||
|
|||
// the URL to the key store where the private key is stored | |||
public static final String PROP_PWD_KS_URL = "kie.keystore.keyStoreURL"; | |||
// the key store password | |||
public static final String PROP_PWD_KS_PWD = "kie.keystore.keyStorePwd"; | |||
// the private key identifier | |||
public static final String PROP_PWD_ALIAS = "kie.keystore.keyAlias"; | |||
// the private key identifier | |||
public static final String PROP_PWD_PWD = "kie.keystore.keyPwd"; | |||
|
|||
public static final String KEY_CERTIFICATE_TYPE = "JKS"; | |||
|
|||
public static final String KEY_PASSWORD_TYPE = "JCEKS"; | |||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.