Name

Key

Synopsis

This interface defines the key object that is used to initialize a cipher. Keys are usually opaque objects; although you can retrieve information about them through this interface, they are read-only objects. Keys are obtained from the jxta.security.impl.KeyBuilder class.

public interface Key {
// Public Instance Methods
   public abstract void clearKey();  
   public abstract int getLength();  
   public abstract short getSize();  
   public abstract byte getType();  
   public abstract boolean isInitialized();  
}

Implementations

jxta.security.impl.cipher.SecretKey, jxta.security.publickey.RSAPrivateKey, jxta.security.publickey.RSAPublicKey

Passed To

Cipher.init(), jxta.security.impl.cipher.NullCipher.init(), jxta.security.impl.cipher.RC4Cipher.init(), jxta.security.impl.mac.MACAlgorithm.init(), jxta.security.impl.mac.NullMAC.init(), jxta.security.mac.MAC.init()

Returned By

jxta.security.impl.cipher.KeyBuilder.buildKey()

Get JXTA in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.