com.metamatrix.common.util.crypto
Class DhKeyGenerator

java.lang.Object
  extended by com.metamatrix.common.util.crypto.DhKeyGenerator

public class DhKeyGenerator
extends java.lang.Object

Helper class that supports anonymous ephemeral Diffie-Hellmen Parameters are stored in the dh.properties file


Constructor Summary
DhKeyGenerator()
           
 
Method Summary
 byte[] createPublicKey()
           
 SymmetricCryptor getSymmetricCryptor(byte[] peerPublicKeyBytes)
           
static void main(java.lang.String[] args)
          Can be used to generate new parameters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DhKeyGenerator

public DhKeyGenerator()
Method Detail

createPublicKey

public byte[] createPublicKey()
                       throws CryptoException
Throws:
CryptoException

getSymmetricCryptor

public SymmetricCryptor getSymmetricCryptor(byte[] peerPublicKeyBytes)
                                     throws CryptoException
Throws:
CryptoException

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Can be used to generate new parameters

Throws:
java.lang.Exception


Copyright © 2009. All Rights Reserved.