org.picketlink.trust.jbossws.Constants Maven / Gradle / Ivy
The newest version!
/*
* JBoss, Home of Professional Open Source.
* Copyright 2010, Red Hat Middleware LLC, and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.picketlink.trust.jbossws;
import org.apache.xml.security.utils.EncryptionConstants;
import javax.xml.namespace.QName;
/**
* @author Jason T. Greene
* @author Anil Saldhana
*/
public class Constants {
public static final String WSS_SOAP_NS = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0";
public static final String WSSE_LOCAL = "Security";
public static final String WSSE_PREFIX = "wsse";
public static final String WSSE_NS = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd";
public static final String WSSE_BINARY_SECURITY_TOKEN = "BinarySecurityToken";
public static final String WSSE_USERNAME_TOKEN = "UsernameToken";
public static final String WSSE_USERNAME = "Username";
public static final String WSSE_PASSWORD = "Password";
public static final String WSSE_PASSWORD_TEXT_NS = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0#PasswordText";
public static final String WSSE_ENCODING_TYPE = "EncodingType";
public static final String WSSE_VALUE_TYPE = "ValueType";
public static final String WSU_PREFIX = "wsu";
public static final String WSU_NS = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";
public static final String XML_SIGNATURE_NS = org.apache.xml.security.utils.Constants.SignatureSpecNS;
public static final String XML_ENCRYPTION_NS = EncryptionConstants.EncryptionSpecNS;
public static final String XML_ENCRYPTION_PREFIX = "ds"; // xmlsec 1.4.2 requires this to be "ds" to correctly create
// KeyInfo elements
public static final String ID = "Id";
public static final String WSU_ID = WSU_PREFIX + ":" + ID;
public static final String BASE64_ENCODING_TYPE = WSS_SOAP_NS + "#Base64Binary";
public static final String PASSWORD_TEXT_TYPE = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText";
public static final String PASSWORD_DIGEST_TYPE = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest";
public static final String WSSE_HEADER = WSSE_PREFIX + ":Security";
public static final String XMLNS_NS = "http://www.w3.org/2000/xmlns/";
public static final String XENC_DATAREFERENCE = "DataReference";
public static final String XENC_REFERENCELIST = "ReferenceList";
public static final String XENC_ELEMENT_TYPE = EncryptionConstants.TYPE_ELEMENT;
public static final String XENC_CONTENT_TYPE = EncryptionConstants.TYPE_CONTENT;
public static final QName WSSE_HEADER_QNAME = new QName(WSSE_NS, "Security");
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy