KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > org > apache > xml > internal > security > transforms > implementations > TransformXPointer


1
2 /*
3  * Copyright 1999-2004 The Apache Software Foundation.
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  */

18 package com.sun.org.apache.xml.internal.security.transforms.implementations;
19
20
21
22
23 import com.sun.org.apache.xml.internal.security.signature.XMLSignatureInput;
24 import com.sun.org.apache.xml.internal.security.transforms.TransformSpi;
25 import com.sun.org.apache.xml.internal.security.transforms.TransformationException;
26 import com.sun.org.apache.xml.internal.security.transforms.Transforms;
27
28
29
30 /**
31  * Class TransformXPointer
32  *
33  * @author Christian Geuer-Pollmann
34  */

35 public class TransformXPointer extends TransformSpi {
36
37    /** Field implementedTransformURI */
38    public static final String JavaDoc implementedTransformURI =
39       Transforms.TRANSFORM_XPOINTER;
40
41
42    /** @inheritDoc */
43    protected String JavaDoc engineGetURI() {
44       return implementedTransformURI;
45    }
46
47    /**
48     * Method enginePerformTransform
49     *
50     * @param input
51     * @return {@link XMLSignatureInput} as the result of transformation
52     * @throws TransformationException
53     *
54     */

55    protected XMLSignatureInput enginePerformTransform(XMLSignatureInput input)
56            throws TransformationException {
57
58       Object JavaDoc exArgs[] = { implementedTransformURI };
59
60       throw new TransformationException(
61          "signature.Transform.NotYetImplemented", exArgs);
62    }
63 }
64
Popular Tags