JXTA

jxta.security.impl.crypto
Class JxtaCryptoSuite

java.lang.Object
  |
  +--jxta.security.impl.crypto.JxtaCryptoSuite

public class JxtaCryptoSuite
extends java.lang.Object
implements jxta.security.crypto.JxtaCrypto


Fields inherited from interface jxta.security.crypto.JxtaCrypto
MEMBER_MD5, MEMBER_RC4, MEMBER_RSA, MEMBER_SHA1, name, nCiphers, nDigests, nMacs, PROFILE_RC4_MD5, PROFILE_RC4_SHA1, PROFILE_RSA_MD5, PROFILE_RSA_RC4_MD5, PROFILE_RSA_RC4_SHA1, PROFILE_RSA_RC4_SHA1_MD5, PROFILE_RSA_SHA1
 
Constructor Summary
JxtaCryptoSuite(byte profileType, RSAKey rKey, byte signatureType, byte macType)
          Our constructor Supported profiles: RSA + RC4 + SHA1
 
Method Summary
 jxta.security.cipher.Cipher getJxtaCipher()
          Accessors
 jxta.security.cipher.Cipher getJxtaCipher(byte type)
          Only one cipher so far ..
 jxta.security.hash.Hash getJxtaHash()
          Use the following if just a single hash has been requested.
 jxta.security.hash.Hash getJxtaHash(byte type)
          Use the following if just mutiple hashes have been requested.
 jxta.security.keyexchange.KeyExchange getJxtaKeyExchange()
           
 jxta.security.mac.MAC getJxtaMAC()
           
 jxta.security.publickey.PublicKeyAlgorithm getJxtaPublicKeyAlgorithm()
           
 jxta.security.signature.Signature getJxtaSignature()
           
static byte getProfile()
          access profile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JxtaCryptoSuite

public JxtaCryptoSuite(byte profileType,
                       RSAKey rKey,
                       byte signatureType,
                       byte macType)
                throws jxta.security.exceptions.CryptoException
Our constructor Supported profiles: RSA + RC4 + SHA1
Method Detail

getJxtaCipher

public jxta.security.cipher.Cipher getJxtaCipher()
Accessors
Specified by:
getJxtaCipher in interface jxta.security.crypto.JxtaCrypto

getJxtaCipher

public jxta.security.cipher.Cipher getJxtaCipher(byte type)
                                          throws jxta.security.exceptions.CryptoException
Only one cipher so far ..
Specified by:
getJxtaCipher in interface jxta.security.crypto.JxtaCrypto

getJxtaHash

public jxta.security.hash.Hash getJxtaHash()
Use the following if just a single hash has been requested.
Specified by:
getJxtaHash in interface jxta.security.crypto.JxtaCrypto

getJxtaHash

public jxta.security.hash.Hash getJxtaHash(byte type)
                                    throws jxta.security.exceptions.CryptoException
Use the following if just mutiple hashes have been requested.
Specified by:
getJxtaHash in interface jxta.security.crypto.JxtaCrypto

getJxtaMAC

public jxta.security.mac.MAC getJxtaMAC()
Specified by:
getJxtaMAC in interface jxta.security.crypto.JxtaCrypto

getJxtaKeyExchange

public jxta.security.keyexchange.KeyExchange getJxtaKeyExchange()
Specified by:
getJxtaKeyExchange in interface jxta.security.crypto.JxtaCrypto

getJxtaPublicKeyAlgorithm

public jxta.security.publickey.PublicKeyAlgorithm getJxtaPublicKeyAlgorithm()
Specified by:
getJxtaPublicKeyAlgorithm in interface jxta.security.crypto.JxtaCrypto

getJxtaSignature

public jxta.security.signature.Signature getJxtaSignature()
Specified by:
getJxtaSignature in interface jxta.security.crypto.JxtaCrypto

getProfile

public static byte getProfile()
access profile

JXTA