01: /*
02: * AlgorithmMethod.java
03: *
04: * Created on January 24, 2006, 11:43 AM
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;
30:
31: import java.security.spec.AlgorithmParameterSpec;
32:
33: /**
34: *
35: * @author Abhijit Das
36: */
37: public class AlgorithmMethod implements
38: javax.xml.crypto.AlgorithmMethod {
39:
40: private AlgorithmParameterSpec algSpec = null;
41: private String alg = null;
42:
43: /** Creates a new instance of AlgorithmMethod */
44: public AlgorithmMethod() {
45: }
46:
47: public void setAlgorithm(String alg) {
48: this .alg = alg;
49: }
50:
51: public String getAlgorithm() {
52: return alg;
53: }
54:
55: public void setParameterSpec(AlgorithmParameterSpec algSpec) {
56: this .algSpec = algSpec;
57: }
58:
59: public AlgorithmParameterSpec getParameterSpec() {
60: return algSpec;
61: }
62:
63: }
|