krb5.lib
Class EncryptionKey

java.lang.Object
  extended by krb5.lib.EncryptionKey
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class EncryptionKey
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable

Class Description : Class defining the encryption key. A modified version of the code obtained from the Open Group Research Institute.

Version:
1.1
Author:
Bojan Pajkovski
See Also:
Serialized Form

Constructor Summary
EncryptionKey(int new_keyType, java.lang.String new_keyValue, java.lang.Integer new_eType, java.lang.Integer new_kvno)
          Class constructor
EncryptionKey(java.lang.String password)
          Class constructor
EncryptionKey(java.lang.String new_keyValue, java.lang.Integer new_eType)
          Class constructor
EncryptionKey(java.lang.String new_keyValue, java.lang.Integer new_eType, java.lang.Integer new_kvno)
          Class constructor
 
Method Summary
 java.lang.Object clone()
          Clones a copy of the object
 void destroy()
          Destroy the key value
 int geteType()
          Returns the encryption type
 int getKeyType()
          Return the key type
 int getKvno()
          Return the key version number
 java.lang.String getValue()
          Return the key value
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EncryptionKey

public EncryptionKey(int new_keyType,
                     java.lang.String new_keyValue,
                     java.lang.Integer new_eType,
                     java.lang.Integer new_kvno)
Class constructor

Parameters:
new_keyType - int
new_keyValue - String
new_eType - Integer
new_kvno - Integer

EncryptionKey

public EncryptionKey(java.lang.String new_keyValue,
                     java.lang.Integer new_eType,
                     java.lang.Integer new_kvno)
Class constructor

Parameters:
new_keyValue - String
new_eType - Integer
new_kvno - Integer

EncryptionKey

public EncryptionKey(java.lang.String new_keyValue,
                     java.lang.Integer new_eType)
Class constructor

Parameters:
new_keyValue - String
new_eType - Integer

EncryptionKey

public EncryptionKey(java.lang.String password)
Class constructor

Parameters:
password - String
Method Detail

geteType

public int geteType()
Returns the encryption type

Returns:
int

getValue

public java.lang.String getValue()
Return the key value

Returns:
String

getKeyType

public int getKeyType()
Return the key type

Returns:
int

getKvno

public int getKvno()
Return the key version number

Returns:
int

clone

public java.lang.Object clone()
Clones a copy of the object

Overrides:
clone in class java.lang.Object
Returns:
Object
See Also:
Object.clone()

destroy

public void destroy()
Destroy the key value