01: /*
02: * AlgorithmSuite.java
03: *
04: * Created on September 5, 2006, 10:44 AM
05: *
06: * To change this template, choose Tools | Template Manager
07: * and open the template in the editor.
08: */
09:
10: package com.sun.xml.wss.impl;
11:
12: /**
13: *
14: * @author sk112103
15: */
16: public class AlgorithmSuite {
17:
18: private String digestAlgo;
19: private String encryptionAlgo;
20: private String symKeyAlgo;
21: private String asymKeyAlgo;
22:
23: /** Creates a new instance of AlgorithmSuite
24: * TODO : Created a minimal CTOR for now. Add more info into this as needed.
25: * Created to remove dependence of XWSS on WS-SecurityPolicy.
26: */
27: public AlgorithmSuite(String digAlgo, String encAlgo,
28: String symkAlgo, String asymkAlgo) {
29: this .digestAlgo = digAlgo;
30: this .encryptionAlgo = encAlgo;
31: this .symKeyAlgo = symkAlgo;
32: this .asymKeyAlgo = asymkAlgo;
33: }
34:
35: public String getDigestAlgorithm() {
36: return digestAlgo;
37: }
38:
39: public String getEncryptionAlgorithm() {
40: return encryptionAlgo;
41: }
42:
43: public String getSymmetricKeyAlgorithm() {
44: return symKeyAlgo;
45: }
46:
47: public String getAsymmetricKeyAlgorithm() {
48: return asymKeyAlgo;
49: }
50:
51: public String getSignatureKDAlogrithm() {
52: throw new UnsupportedOperationException(
53: "getSignatureKDAlogrithm not supported");
54: }
55:
56: public String getEncryptionKDAlogrithm() {
57: throw new UnsupportedOperationException(
58: "getEncryptionKDAlogrithm not supported");
59: }
60:
61: public int getMinSKLAlgorithm() {
62: throw new UnsupportedOperationException(
63: "getMinSKLAlgorithm not supported");
64: }
65:
66: public String getSymmetricKeySignatureAlgorithm() {
67: throw new UnsupportedOperationException(
68: "getSymmetricKeySignatureAlgorithm not supported");
69: }
70:
71: public String getAsymmetricKeySignatureAlgorithm() {
72: throw new UnsupportedOperationException(
73: " getAsymmetricKeySignatureAlgorithm not supported");
74: }
75:
76: }
|