1 17 18 package org.apache.geronimo.util.crypto.params; 19 20 import org.apache.geronimo.util.crypto.CipherParameters; 21 22 public class KeyParameter 23 implements CipherParameters 24 { 25 private byte[] key; 26 27 public KeyParameter( 28 byte[] key) 29 { 30 this(key, 0, key.length); 31 } 32 33 public KeyParameter( 34 byte[] key, 35 int keyOff, 36 int keyLen) 37 { 38 this.key = new byte[keyLen]; 39 40 System.arraycopy(key, keyOff, this.key, 0, keyLen); 41 } 42 43 public byte[] getKey() 44 { 45 return key; 46 } 47 } 48 | Popular Tags |