cryptix.provider.key

Class RawSecretKey

Implemented Interfaces:
Key, SecretKey

public class RawSecretKey
extends RawKey
implements SecretKey

RawSecretKey implements a secret key in raw format. RawKeyGenerator creates keys that are instances of this class.

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

$Revision: 1.2 $

Authors:
David Hopwood
Raif S. Naffah
Since:
Cryptix 2.2.2

Constructor Summary

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

Method Summary

Methods inherited from class cryptix.provider.key.RawKey

equals, getAlgorithm, getEncoded, getFormat, hashCode

Constructor Details

RawSecretKey

public RawSecretKey(String algorithm,
                    byte[] data)
Constructs a secret key with the specified algorithm and raw-encoded data array.
Parameters:
algorithm - the name of the algorithm
data - the key's raw-encoded data

RawSecretKey

public RawSecretKey(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