diff options
Diffstat (limited to 'src/share/classes/org/jcp/xml/dsig/internal/dom/XMLDSigRI.java')
-rw-r--r-- | src/share/classes/org/jcp/xml/dsig/internal/dom/XMLDSigRI.java | 54 |
1 files changed, 34 insertions, 20 deletions
diff --git a/src/share/classes/org/jcp/xml/dsig/internal/dom/XMLDSigRI.java b/src/share/classes/org/jcp/xml/dsig/internal/dom/XMLDSigRI.java index fbf4d9c4d..20958bc72 100644 --- a/src/share/classes/org/jcp/xml/dsig/internal/dom/XMLDSigRI.java +++ b/src/share/classes/org/jcp/xml/dsig/internal/dom/XMLDSigRI.java @@ -1,28 +1,23 @@ /* - * Portions Copyright 2005 Sun Microsystems, Inc. All Rights Reserved. - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * reserved comment block + * DO NOT REMOVE OR ALTER! + */ +/* + * Copyright 2005 The Apache Software Foundation. * - * This code is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License version 2 only, as - * published by the Free Software Foundation. Sun designates this - * particular file as subject to the "Classpath" exception as provided - * by Sun in the LICENSE file that accompanied this code. + * 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 * - * This code 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 General Public License - * version 2 for more details (a copy is included in the LICENSE file that - * accompanied this code). + * http://www.apache.org/licenses/LICENSE-2.0 * - * You should have received a copy of the GNU General Public License version - * 2 along with this work; if not, write to the Free Software Foundation, - * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * 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. * - * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, - * CA 95054 USA or visit www.sun.com if you need additional information or - * have any questions. */ - /* * =========================================================================== * @@ -31,7 +26,10 @@ * =========================================================================== */ /* - * $Id: XMLDSigRI.java,v 1.7 2005/05/12 19:28:36 mullan Exp $ + * Portions copyright 2005 Sun Microsystems, Inc. All rights reserved. + */ +/* + * $Id: XMLDSigRI.java,v 1.2 2008/07/24 15:20:32 mullan Exp $ */ package org.jcp.xml.dsig.internal.dom; @@ -86,6 +84,22 @@ public final class XMLDSigRI extends Provider { CanonicalizationMethod.INCLUSIVE_WITH_COMMENTS + " MechanismType", "DOM"); + // Inclusive C14N 1.1 + map.put((String)"TransformService." + + "http://www.w3.org/2006/12/xml-c14n11", + "org.jcp.xml.dsig.internal.dom.DOMCanonicalXMLC14N11Method"); + map.put((String)"TransformService." + + "http://www.w3.org/2006/12/xml-c14n11" + + " MechanismType", "DOM"); + + // InclusiveWithComments C14N 1.1 + map.put((String)"TransformService." + + "http://www.w3.org/2006/12/xml-c14n11#WithComments", + "org.jcp.xml.dsig.internal.dom.DOMCanonicalXMLC14N11Method"); + map.put((String)"TransformService." + + "http://www.w3.org/2006/12/xml-c14n11#WithComments" + + " MechanismType", "DOM"); + // Exclusive C14N map.put((String) "TransformService." + CanonicalizationMethod.EXCLUSIVE, "org.jcp.xml.dsig.internal.dom.DOMExcC14NMethod"); |