J. Duke | 319a3b9 | 2007-12-01 00:00:00 +0000 | [diff] [blame^] | 1 | /* |
| 2 | * reserved comment block |
| 3 | * DO NOT REMOVE OR ALTER! |
| 4 | */ |
| 5 | |
| 6 | /* |
| 7 | * Copyright 1999-2004 The Apache Software Foundation. |
| 8 | * |
| 9 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 10 | * you may not use this file except in compliance with the License. |
| 11 | * You may obtain a copy of the License at |
| 12 | * |
| 13 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 14 | * |
| 15 | * Unless required by applicable law or agreed to in writing, software |
| 16 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 18 | * See the License for the specific language governing permissions and |
| 19 | * limitations under the License. |
| 20 | * |
| 21 | */ |
| 22 | package com.sun.org.apache.xml.internal.security.transforms.implementations; |
| 23 | |
| 24 | |
| 25 | |
| 26 | |
| 27 | import com.sun.org.apache.xml.internal.security.signature.XMLSignatureInput; |
| 28 | import com.sun.org.apache.xml.internal.security.transforms.TransformSpi; |
| 29 | import com.sun.org.apache.xml.internal.security.transforms.TransformationException; |
| 30 | import com.sun.org.apache.xml.internal.security.transforms.Transforms; |
| 31 | |
| 32 | |
| 33 | |
| 34 | /** |
| 35 | * Class TransformXPointer |
| 36 | * |
| 37 | * @author Christian Geuer-Pollmann |
| 38 | */ |
| 39 | public class TransformXPointer extends TransformSpi { |
| 40 | |
| 41 | /** Field implementedTransformURI */ |
| 42 | public static final String implementedTransformURI = |
| 43 | Transforms.TRANSFORM_XPOINTER; |
| 44 | |
| 45 | |
| 46 | /** @inheritDoc */ |
| 47 | protected String engineGetURI() { |
| 48 | return implementedTransformURI; |
| 49 | } |
| 50 | |
| 51 | /** |
| 52 | * Method enginePerformTransform |
| 53 | * |
| 54 | * @param input |
| 55 | * @return {@link XMLSignatureInput} as the result of transformation |
| 56 | * @throws TransformationException |
| 57 | * |
| 58 | */ |
| 59 | protected XMLSignatureInput enginePerformTransform(XMLSignatureInput input) |
| 60 | throws TransformationException { |
| 61 | |
| 62 | Object exArgs[] = { implementedTransformURI }; |
| 63 | |
| 64 | throw new TransformationException( |
| 65 | "signature.Transform.NotYetImplemented", exArgs); |
| 66 | } |
| 67 | } |