JXTA

jxta.security.cipher
Interface Key

All Known Subinterfaces:
RSAPrivateKey, RSAPublicKey

public interface Key


Method Summary
 void clearKey()
          // clears a key
 int getLength()
          // Returns the key length in bytes
 short getSize()
          // Returns the key size in bits
 byte getType()
          // Returns the key interface type: EG RC4
 boolean isInitialized()
          Returns initialized state.
 

Method Detail

isInitialized

public boolean isInitialized()
Returns initialized state. MUST be initialized before being used.

clearKey

public void clearKey()
// clears a key

getType

public byte getType()
// Returns the key interface type: EG RC4

getSize

public short getSize()
// Returns the key size in bits

getLength

public int getLength()
// Returns the key length in bytes

JXTA