org.eclipse.higgins.sts.utilities
Class KeyGenHelper
java.lang.Object
org.eclipse.higgins.sts.utilities.KeyGenHelper
- public class KeyGenHelper
- extends Object
- Author:
- mikemci
KeyGenHelper
public KeyGenHelper()
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