org.eclipse.higgins.sts.utilities
Class KeyGenHelper

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

public class KeyGenHelper
extends java.lang.Object

Author:
mikemci

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

Constructor Detail

KeyGenHelper

public KeyGenHelper()
Method Detail

ppidToFriendly

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

generatePPID

public static byte[] generatePPID(java.net.URI uriCardId,
                                  byte[] rpIdentifier)
                           throws java.lang.Exception
Throws:
java.lang.Exception

getOrganizationalIdentifierAttributes

public static java.util.Map getOrganizationalIdentifierAttributes(java.security.cert.X509Certificate cert)

getOrgIdString

public static java.lang.String getOrgIdString(java.util.Map mapOrgIdAttributes)

generateRPIdentifier

public static byte[] generateRPIdentifier(java.security.cert.X509Certificate[] chain)
                                   throws java.lang.Exception
Throws:
java.lang.Exception

generateRSAKeyPair

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