All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class cryptix.provider.key.RawKey

java.lang.Object
   |
   +----cryptix.provider.key.RawKey

public class RawKey
extends Object
implements Key
RawKey implements a key in raw format, represented as a byte array.

Copyright © 1997 Systemics Ltd on behalf of the Cryptix Development Team.
All rights reserved.

$Revision: 1.1.1.1 $

Author:
David Hopwood, Raif S. Naffah

Constructor Index

 o RawKey(String, byte[])
Constructs a key with the specified algorithm name and raw-encoded data array.
 o RawKey(String, byte[], int, int)
Constructs a secret key with the specified algorithm and raw-encoded data subarray.

Method Index

 o getAlgorithm()
 o getEncoded()
 o getFormat()

Constructors

 o RawKey
 public RawKey(String algorithm,
               byte data[])
Constructs a key with the specified algorithm name and raw-encoded data array.

Parameters:
algorithm - the name of the algorithm
data - the key's raw-encoded data
Throws: NullPointerException
if algorithm == null || data == null
 o RawKey
 public RawKey(String algorithm,
               byte data[],
               int offset,
               int length)
Constructs a secret key with the specified algorithm and raw-encoded data subarray.

Parameters:
algorithm - the name of the algorithm
data - the key's raw-encoded data
offset - the offset of the encoding in data
length - the length of the encoding
Throws: NullPointerException
if algorithm == null || data == null

Methods

 o getAlgorithm
 public String getAlgorithm()
Returns:
the standard algorithm name this key was generated for.
 o getFormat
 public String getFormat()
Returns:
the format used to encode this key. For this class it's always RAW.
 o getEncoded
 public byte[] getEncoded()
Returns:
a copy of the raw-encoded key data

All Packages  Class Hierarchy  This Package  Previous  Next  Index