org.wso2.solutions.identity.cards
Class Generator
java.lang.Object
org.wso2.solutions.identity.cards.Generator
public class Generator
- extends java.lang.Object
Generates signed information cards.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Generator
public Generator()
signCard
public org.w3c.dom.Element signCard(InformationCard card)
throws CardModelException
- Sign the given information card content
- Parameters:
card
- Information card content to be signed
- Returns:
- Signed information card element
- Throws:
CardModelException
getPrivateKey
public java.security.PrivateKey getPrivateKey()
setPrivateKey
public void setPrivateKey(java.security.PrivateKey privateKey)
getSignatureAlgorithm
public java.lang.String getSignatureAlgorithm()
setSignatureAlgorithm
public void setSignatureAlgorithm(java.lang.String signatureAlgorithm)
getCanonicalizationAlgorithm
public java.lang.String getCanonicalizationAlgorithm()
setCanonicalizationAlgorithm
public void setCanonicalizationAlgorithm(java.lang.String canonicalizationAlgorithm)
getCert
public java.security.cert.X509Certificate getCert()
setCert
public void setCert(java.security.cert.X509Certificate cert)
setCertChain
public void setCertChain(java.security.cert.Certificate[] certCain)