1 package org.bouncycastle.crypto.params; 2 3 import org.bouncycastle.crypto.CipherParameters; 4 5 public class KeyParameter 6 implements CipherParameters 7 { 8 private byte[] key; 9 10 public KeyParameter( 11 byte[] key) 12 { 13 this(key, 0, key.length); 14 } 15 16 public KeyParameter( 17 byte[] key, 18 int keyOff, 19 int keyLen) 20 { 21 this.key = new byte[keyLen]; 22 23 System.arraycopy(key, keyOff, this.key, 0, keyLen); 24 } 25 26 public byte[] getKey() 27 { 28 return key; 29 } 30 } 31