org.wso2.solutions.identity.sts.saml
Class SAML1TokenBuilder

java.lang.Object
  extended by org.wso2.solutions.identity.sts.saml.SAML1TokenBuilder
All Implemented Interfaces:
SAMLTokenBuilder

public class SAML1TokenBuilder
extends java.lang.Object
implements SAMLTokenBuilder


Field Summary
protected  java.lang.String appilesTo
           
protected  org.opensaml.saml1.core.Assertion assertion
           
protected  org.opensaml.saml1.core.AttributeStatement attributeStmt
           
static java.lang.String CONF_KEY
           
protected  java.util.List signatureList
           
protected  org.w3c.dom.Element signedAssertion
           
 
Constructor Summary
SAML1TokenBuilder()
           
 
Method Summary
protected static org.opensaml.xml.XMLObject buildXMLObject(javax.xml.namespace.QName objectQName)
           
 void createSAMLAssertion(org.joda.time.DateTime notAfter, org.joda.time.DateTime notBefore, java.lang.String assertionId)
           
 void createStatement(IdentityProviderData ipData, org.apache.rahas.RahasData rahasData)
           
 org.w3c.dom.Element getSAMLasDOM()
           
 void marshellAndSign()
           
 void setSignature(java.lang.String signatureAlgorithm, org.opensaml.xml.security.x509.X509Credential cred)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

assertion

protected org.opensaml.saml1.core.Assertion assertion

attributeStmt

protected org.opensaml.saml1.core.AttributeStatement attributeStmt

signatureList

protected java.util.List signatureList

signedAssertion

protected org.w3c.dom.Element signedAssertion

appilesTo

protected java.lang.String appilesTo

CONF_KEY

public static final java.lang.String CONF_KEY
See Also:
Constant Field Values
Constructor Detail

SAML1TokenBuilder

public SAML1TokenBuilder()
Method Detail

createStatement

public void createStatement(IdentityProviderData ipData,
                            org.apache.rahas.RahasData rahasData)
                     throws IdentityProviderException
Specified by:
createStatement in interface SAMLTokenBuilder
Throws:
IdentityProviderException

createSAMLAssertion

public void createSAMLAssertion(org.joda.time.DateTime notAfter,
                                org.joda.time.DateTime notBefore,
                                java.lang.String assertionId)
                         throws IdentityProviderException
Specified by:
createSAMLAssertion in interface SAMLTokenBuilder
Throws:
IdentityProviderException

setSignature

public void setSignature(java.lang.String signatureAlgorithm,
                         org.opensaml.xml.security.x509.X509Credential cred)
                  throws IdentityProviderException
Specified by:
setSignature in interface SAMLTokenBuilder
Throws:
IdentityProviderException

marshellAndSign

public void marshellAndSign()
                     throws IdentityProviderException
Specified by:
marshellAndSign in interface SAMLTokenBuilder
Throws:
IdentityProviderException

getSAMLasDOM

public org.w3c.dom.Element getSAMLasDOM()
                                 throws IdentityProviderException
Specified by:
getSAMLasDOM in interface SAMLTokenBuilder
Throws:
IdentityProviderException

buildXMLObject

protected static org.opensaml.xml.XMLObject buildXMLObject(javax.xml.namespace.QName objectQName)
                                                    throws IdentityProviderException
Throws:
IdentityProviderException