01: /*
02: * DataEncryptionProcessor.java
03: *
04: * Created on August 4, 2006, 3:39 PM
05: *
06: * The contents of this file are subject to the terms
07: * of the Common Development and Distribution License
08: * (the License). You may not use this file except in
09: * compliance with the License.
10: *
11: * You can obtain a copy of the license at
12: * https://glassfish.dev.java.net/public/CDDLv1.0.html.
13: * See the License for the specific language governing
14: * permissions and limitations under the License.
15: *
16: * When distributing Covered Code, include this CDDL
17: * Header Notice in each file and include the License file
18: * at https://glassfish.dev.java.net/public/CDDLv1.0.html.
19: * If applicable, add the following below the CDDL Header,
20: * with the fields enclosed by brackets [] replaced by
21: * you own identifying information:
22: * "Portions Copyrighted [year] [name of copyright owner]"
23: *
24: * Copyright 2006 Sun Microsystems Inc. All Rights Reserved
25: */
26:
27: package com.sun.xml.ws.security.opt.impl.enc;
28:
29: /**
30: *
31: * @author K.Venugopal@sun.com
32: */
33: public class DataEncryptionProcessor extends CryptoProcessor {
34:
35: // private String dataEncAlgo = "";
36: //
37: //
38: // /** Creates a new instance of DataEncryptionProcessor */
39: // public DataEncryptionProcessor(String dataEncAlgo,Data ed,Key key) {
40: // this.key = key;
41: // this.data = ed;
42: // this.dataEncAlgo = dataEncAlgo;
43: // }
44: //
45: // protected void initCipher() throws NoSuchAlgorithmException,NoSuchPaddingException, InvalidKeyException{
46: // if ( cipher == null ) {
47: // String transformation = convertAlgURIToTransformation(dataEncAlgo);
48: // cipher = Cipher.getInstance(transformation);
49: // cipher.init(Cipher.ENCRYPT_MODE, getKey());
50: // }
51: // }
52: //
53: // protected String getAlgorithm() {
54: // return dataEncAlgo;
55: // }
56:
57: }
|