org.eclipse.higgins.sts.utilities
Class KeyGenHelper
java.lang.Object
org.eclipse.higgins.sts.utilities.KeyGenHelper
- public class KeyGenHelper
- extends java.lang.Object
- Author:
- mikemci
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KeyGenHelper
public KeyGenHelper()
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