01: /*
02: * DigestMethod.java
03: *
04: * Created on January 24, 2006, 2:40 PM
05: */
06:
07: /*
08: * The contents of this file are subject to the terms
09: * of the Common Development and Distribution License
10: * (the License). You may not use this file except in
11: * compliance with the License.
12: *
13: * You can obtain a copy of the license at
14: * https://glassfish.dev.java.net/public/CDDLv1.0.html.
15: * See the License for the specific language governing
16: * permissions and limitations under the License.
17: *
18: * When distributing Covered Code, include this CDDL
19: * Header Notice in each file and include the License file
20: * at https://glassfish.dev.java.net/public/CDDLv1.0.html.
21: * If applicable, add the following below the CDDL Header,
22: * with the fields enclosed by brackets [] replaced by
23: * you own identifying information:
24: * "Portions Copyrighted [year] [name of copyright owner]"
25: *
26: * Copyright 2006 Sun Microsystems Inc. All Rights Reserved
27: */
28:
29: package com.sun.xml.ws.security.opt.crypto.dsig;
30:
31: import java.security.spec.AlgorithmParameterSpec;
32: import javax.xml.bind.annotation.XmlRootElement;
33: import javax.xml.bind.annotation.XmlTransient;
34:
35: /**
36: *
37: * @author Abhijit Das
38: */
39: @XmlRootElement(name="DigestMethod",namespace="http://www.w3.org/2000/09/xmldsig#")
40: public class DigestMethod extends
41: com.sun.xml.security.core.dsig.DigestMethodType implements
42: javax.xml.crypto.dsig.DigestMethod {
43:
44: @XmlTransient
45: private AlgorithmParameterSpec algSpec = null;
46:
47: /** Creates a new instance of DigestMethod */
48: public DigestMethod() {
49: }
50:
51: public void setParameterSpec(AlgorithmParameterSpec algSpec) {
52: this .algSpec = algSpec;
53: }
54:
55: public AlgorithmParameterSpec getParameterSpec() {
56: return algSpec;
57: }
58:
59: public boolean isFeatureSupported(String string) {
60: //TODO
61: return false;
62: }
63:
64: }
|