org.eclipse.higgins.sts.utilities
Class KeyGenHelper

java.lang.Object
  extended byorg.eclipse.higgins.sts.utilities.KeyGenHelper

public class KeyGenHelper
extends Object

Author:
mikemci

Constructor Summary
KeyGenHelper()
           
 
Method Summary
static String byteArrayToHexString(byte[] in)
           
static byte[] generateRPIdentifier(X509Certificate[] chain)
           
static KeyPair generateRSAKeyPair(org.eclipse.higgins.sts.spi.IBase64Extension base64, byte[] masterKey, byte[] relyingPartyIdentifier, int nKeyBitLength)
           
static Map getOrganizationalIdentifierAttributes(X509Certificate cert)
           
static String getOrgIdString(Map mapOrgIdAttributes)
           
static String ppidToFriendly(byte[] ppid)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyGenHelper

public KeyGenHelper()
Method Detail

byteArrayToHexString

public static String byteArrayToHexString(byte[] in)

ppidToFriendly

public static String ppidToFriendly(byte[] ppid)
                             throws Exception
Throws:
Exception

getOrganizationalIdentifierAttributes

public static Map getOrganizationalIdentifierAttributes(X509Certificate cert)

getOrgIdString

public static String getOrgIdString(Map mapOrgIdAttributes)

generateRPIdentifier

public static byte[] generateRPIdentifier(X509Certificate[] chain)
                                   throws Exception
Throws:
Exception

generateRSAKeyPair

public static KeyPair generateRSAKeyPair(org.eclipse.higgins.sts.spi.IBase64Extension base64,
                                         byte[] masterKey,
                                         byte[] relyingPartyIdentifier,
                                         int nKeyBitLength)
                                  throws Exception
Throws:
Exception