org.eclipse.higgins.sts.informationcardgenerator
Class InfoCard

java.lang.Object
  extended by org.eclipse.higgins.sts.informationcardgenerator.InfoCard

public class InfoCard
extends Object

Desc:


Constructor Summary
InfoCard(PrivateKey privateKeySigner, X509Certificate certificateSigner, X509Certificate certificateMEX)
          Desc:
InfoCard(String strSignerKeystoreType, String strSignerKeystoreFile, String strSignerKeystorePassword, String strSignerCertificateAlias, String strSignerKeyAlias, String strSignerKeyPassword, String strMEXKeystoreType, String strMEXKeystoreFile, String strMEXKeystorePassword, String strMEXCertificateAlias)
          Desc:
 
Method Summary
 void addSupportedClaim(String strClaimURI, String strClaimDisplayTag, String strClaimDescription)
          Desc:
 void addSupportedTokenType(String strTokenTypeURI)
          Desc:
 void addTokenServiceRef(String stsURI, String mexURI, Element elemUserCredential)
          Desc:
 Element buildSelfIssuedCredential(String strPPID)
          Desc:
 Element buildUsernamePasswordCredential(String strUserName, String strHint)
          Desc:
 Element buildX509CertificateCredential(String strCertThumbprint, String strHint)
          Desc:
static void createInfoCard(String strSignerKeystoreType, String strSignerKeystoreFile, String strSignerKeystorePassword, String strSignerCertificateAlias, String strSignerKeyAlias, String strSignerKeyPassword, String strMEXKeystoreType, String strMEXKeystoreFile, String strMEXKeystorePassword, String strMEXCertificateAlias, String strCardId, String strCardVersion, String strCardName, String strCardExpiration, String strCardImageFileName, String strIssuerURI, String strSTSEndpointReference, String strMEXEndpointReference, String strUsername, String[] strClaims, String strCardFileName)
          Desc:
 KeyStore loadKeyStore(String strStoreType, String strFile, String strPassword)
          Desc:
 Element reparseElement(Element domElement)
          Desc:
 void setCardExpiration(long lExpireGMTTime)
          Desc:
 void setCardExpiration(String sExpireTime)
          Desc:
 void setCardID(String strValue)
          Desc:
 void setCardImage(Image image)
          Desc:
 void setCardImage(String strImageFileName)
          Desc:
 void setCardImage(String strBase64EncodedImage, String strMimeType)
          Desc:
 void setCardName(String strCardName)
          Desc:
 void setCardReference(String strCardId, String strCardVersion)
          Desc:
 void setCardVersion(int iValue)
          Desc:
 void setCardVersion(String strValue)
          Desc:
 void setIssuerURI(String strValue)
          Desc:
 void setPrivacyNoticeURI(String strValue)
          Desc:
 void setRequiresAppliesTo()
          Desc:
static String stripNewLinesFromString(String strValue)
          Desc:
 Element toDOM(String strElement)
          Desc:
 void toFile(String strFileName)
          Desc:
 String toXML()
          Desc:
 void validateCard()
          Desc:
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InfoCard

public InfoCard(PrivateKey privateKeySigner,
                X509Certificate certificateSigner,
                X509Certificate certificateMEX)
         throws InfoCardException
Desc:

Throws:
InfoCardException

InfoCard

public InfoCard(String strSignerKeystoreType,
                String strSignerKeystoreFile,
                String strSignerKeystorePassword,
                String strSignerCertificateAlias,
                String strSignerKeyAlias,
                String strSignerKeyPassword,
                String strMEXKeystoreType,
                String strMEXKeystoreFile,
                String strMEXKeystorePassword,
                String strMEXCertificateAlias)
         throws InfoCardException
Desc:

Throws:
InfoCardException
Method Detail

createInfoCard

public static void createInfoCard(String strSignerKeystoreType,
                                  String strSignerKeystoreFile,
                                  String strSignerKeystorePassword,
                                  String strSignerCertificateAlias,
                                  String strSignerKeyAlias,
                                  String strSignerKeyPassword,
                                  String strMEXKeystoreType,
                                  String strMEXKeystoreFile,
                                  String strMEXKeystorePassword,
                                  String strMEXCertificateAlias,
                                  String strCardId,
                                  String strCardVersion,
                                  String strCardName,
                                  String strCardExpiration,
                                  String strCardImageFileName,
                                  String strIssuerURI,
                                  String strSTSEndpointReference,
                                  String strMEXEndpointReference,
                                  String strUsername,
                                  String[] strClaims,
                                  String strCardFileName)
                           throws InfoCardException
Desc:

Throws:
InfoCardException

setCardReference

public void setCardReference(String strCardId,
                             String strCardVersion)
Desc:


setCardName

public void setCardName(String strCardName)
Desc:


setCardExpiration

public void setCardExpiration(long lExpireGMTTime)
Desc:


setCardExpiration

public void setCardExpiration(String sExpireTime)
Desc:


addTokenServiceRef

public void addTokenServiceRef(String stsURI,
                               String mexURI,
                               Element elemUserCredential)
                        throws InfoCardException
Desc:

Throws:
InfoCardException

addSupportedClaim

public void addSupportedClaim(String strClaimURI,
                              String strClaimDisplayTag,
                              String strClaimDescription)
Desc:


addSupportedTokenType

public void addSupportedTokenType(String strTokenTypeURI)
Desc:


buildUsernamePasswordCredential

public Element buildUsernamePasswordCredential(String strUserName,
                                               String strHint)
Desc:


buildSelfIssuedCredential

public Element buildSelfIssuedCredential(String strPPID)
Desc:


buildX509CertificateCredential

public Element buildX509CertificateCredential(String strCertThumbprint,
                                              String strHint)
Desc:


setCardImage

public void setCardImage(String strImageFileName)
                  throws InfoCardException
Desc:

Throws:
InfoCardException

setCardImage

public void setCardImage(Image image)
                  throws InfoCardException
Desc:

Throws:
InfoCardException

setCardImage

public void setCardImage(String strBase64EncodedImage,
                         String strMimeType)
                  throws InfoCardException
Desc:

Throws:
InfoCardException

setIssuerURI

public void setIssuerURI(String strValue)
Desc:


setPrivacyNoticeURI

public void setPrivacyNoticeURI(String strValue)
Desc:


setRequiresAppliesTo

public void setRequiresAppliesTo()
Desc:


setCardID

public void setCardID(String strValue)
Desc:


setCardVersion

public void setCardVersion(int iValue)
Desc:


setCardVersion

public void setCardVersion(String strValue)
Desc:


toXML

public String toXML()
             throws InfoCardException
Desc:

Throws:
InfoCardException

reparseElement

public Element reparseElement(Element domElement)
                       throws InfoCardException
Desc:

Throws:
InfoCardException

toDOM

public Element toDOM(String strElement)
              throws InfoCardException
Desc:

Throws:
InfoCardException

toFile

public void toFile(String strFileName)
            throws InfoCardException
Desc:

Throws:
InfoCardException

loadKeyStore

public KeyStore loadKeyStore(String strStoreType,
                             String strFile,
                             String strPassword)
                      throws InfoCardException
Desc:

Throws:
InfoCardException

validateCard

public void validateCard()
                  throws InfoCardException
Desc:

Throws:
InfoCardException

stripNewLinesFromString

public static String stripNewLinesFromString(String strValue)
Desc: