1 /* 2 * Copyright (c) 2007, Fraunhofer-Gesellschaft 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: 8 * 9 * (1) Redistributions of source code must retain the above copyright 10 * notice, this list of conditions and the disclaimer at the end. 11 * Redistributions in binary form must reproduce the above copyright 12 * notice, this list of conditions and the following disclaimer in 13 * the documentation and/or other materials provided with the 14 * distribution. 15 * 16 * (2) Neither the name of Fraunhofer nor the names of its 17 * contributors may be used to endorse or promote products derived 18 * from this software without specific prior written permission. 19 * 20 * DISCLAIMER 21 * 22 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 23 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 24 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 25 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 26 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 27 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 28 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 29 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 30 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 31 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 32 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 33 * 34 */ 35 package org.ogf.graap.wsag.security.core; 36 37 /** 38 * SecurityConstants 39 * 40 * @author Oliver Waeldrich 41 * 42 */ 43 public class SecurityConstants 44 { 45 46 /** 47 * WSAG4J default alias key. Used for lookup in {@link org.ogf.graap.wsag.security.core.server.Merlin} 48 * properties. 49 */ 50 public static final String DEFAULT_ALIAS = "$$$wsag4j-default-alias$$$"; 51 52 /** 53 * WSAG4J default alias password key. Used for lookup in 54 * {@link org.ogf.graap.wsag.security.core.server.Merlin} properties. 55 */ 56 public static final String DEFAULT_ALIAS_PASSWORD = "$$$wsag4j-default-password$$$"; 57 58 /** 59 * WSAG4J default signing crypto key. Used for lookup in 60 * {@link org.ogf.graap.wsag.security.core.server.Merlin} properties. 61 */ 62 public static final String CRYPTO_SIGN = "http://de.fraunhofer.scai.wsag4j/security/sign"; 63 64 /** 65 * WSAG4J default encoding crypto key. Used for lookup in 66 * {@link org.ogf.graap.wsag.security.core.server.Merlin} properties. 67 */ 68 public static final String CRYPTO_ENC = "http://de.fraunhofer.scai.wsag4j/security/encode"; 69 70 /** 71 * WSAG4J default client certificate key. Used for lookup in 72 * <code>org.ogf.graap.wsag.server.api.WsagMessageContext</code>. 73 */ 74 public static final String X509_CLIENT_CERTIFICATE = 75 "http://de.fraunhofer.scai.wsag4j/security/x509-client-certificate"; 76 77 /** 78 * Default key to lookup the JAAS subject of the authenticated user in the 79 * <code>org.ogf.graap.wsag.server.api.WsagMessageContext</code>. 80 */ 81 public static final String AUTHENTICATED_USER = 82 "http://de.fraunhofer.scai.wsag4j/security/user-subject"; 83 84 /** 85 * WSAG4J default client certificate chain key. Used for lookup 86 * <code>org.ogf.graap.wsag.server.api.WsagMessageContext</code>. 87 */ 88 public static final String X509_CLIENT_CERTIFICATE_CHAIN = 89 "http://de.fraunhofer.scai.wsag4j/security/x509-client-certificate-chain"; 90 91 /** 92 * WSAG4J default server identity key. Used for lookup by 93 * <code>org.ogf.graap.wsag.client.remote.WsrfResourceClient</code>. 94 */ 95 public static final String X500_SERVER_IDENTITY = 96 "http://de.fraunhofer.scai.wsag4j/security/x500-server-identity"; 97 98 /** 99 * WSAG4J default server certificate key. Used for lookup by 100 * <code>org.ogf.graap.wsag.client.remote.Axis2SoapClient</code>. 101 */ 102 public static final String X509_SERVER_CERTIFICATE = 103 "http://de.fraunhofer.scai.wsag4j/security/x509-server-certificate"; 104 105 /** 106 * WSAG4J default server certificate chain key. Used for lookup by 107 * <code>org.ogf.graap.wsag.client.remote.Axis2SoapClient</code>. 108 */ 109 public static final String X509_SERVER_CERTIFICATE_CHAIN = 110 "http://de.fraunhofer.scai.wsag4j/security/x509-server-certificate-chain"; 111 112 /** 113 * WSAG4J default SAML trust delegation key. 114 */ 115 public static final String SAML_TRUST_DELEGATION = 116 "http://de.fraunhofer.scai.wsag4j/security/saml-2.0-trust-delegation"; 117 118 // public static final String WSAG4J_SERVER_CRYPTO = 119 // "http://de.fraunhofer.scai.wsag4j/security/wsag4j/server"; 120 // public static final String WSAG4J_CLIENT_CRYPTO = 121 // "http://de.fraunhofer.scai.wsag4j/security/wsag4j/client"; 122 123 /** 124 * WS-Security crypto provider key. 125 */ 126 public static final String PROP_CRYPTO_PROVIDER = "org.apache.ws.security.crypto.provider"; 127 128 /** 129 * WS-Security keystore type key. 130 */ 131 public static final String PROP_KEYSTORE_TYPE = "org.apache.ws.security.crypto.merlin.keystore.type"; 132 133 /** 134 * WS-Security keystore password key. 135 */ 136 public static final String PROP_KEYSTORE_PASS = "org.apache.ws.security.crypto.merlin.keystore.password"; 137 138 /** 139 * WS-Security keystore alias key. 140 */ 141 public static final String PROP_KEYSTORE_ALIAS = "org.apache.ws.security.crypto.merlin.keystore.alias"; 142 143 /** 144 * WS-Security keystore alias password key. 145 */ 146 public static final String PROP_KEYSTORE_ALIAS_PASS = 147 "org.apache.ws.security.crypto.merlin.alias.password"; 148 149 /** 150 * WS-Security keystore filename key. 151 */ 152 public static final String PROP_KEYSTORE_FILE = "org.apache.ws.security.crypto.merlin.file"; 153 154 /** 155 * WS-Security trust store filename key. 156 */ 157 public static final String PROP_TRUSTSTORE_FILE = "org.wsag4j.ws.security.crypto.merlin.truststore.file"; 158 159 /** 160 * WS-Security trust store type key. 161 */ 162 public static final String PROP_TRUSTSTORE_TYPE = "org.wsag4j.ws.security.crypto.merlin.truststore.type"; 163 164 /** 165 * WS-Security trust store password key. 166 */ 167 public static final String PROP_TRUSTSTORE_PASS = 168 "org.wsag4j.ws.security.crypto.merlin.truststore.password"; 169 170 }