org.apache.ws.security.saml.ext.builder
Class SAML1ComponentBuilder

java.lang.Object
  extended by org.apache.ws.security.saml.ext.builder.SAML1ComponentBuilder

public class SAML1ComponentBuilder
extends java.lang.Object

Class SAML1ComponentBuilder provides builder methods that can be used to construct SAML v1.1 statements using the OpenSaml library.

Created on May 18, 2009


Constructor Summary
SAML1ComponentBuilder()
           
 
Method Summary
static org.opensaml.xml.signature.KeyInfo createKeyInfo(KeyInfoBean keyInfo)
          Create an Opensaml KeyInfo object from the parameters
static org.opensaml.saml1.core.Subject createSaml1v1Subject(SubjectBean subjectBean)
          Create a SAML Subject from a SubjectBean instance
static org.opensaml.saml1.core.Action createSamlv1Action(ActionBean actionBean)
          Create an Action object
static org.opensaml.saml1.core.Assertion createSamlv1Assertion(java.lang.String issuer)
          Create a new SAML 1.1 assertion
static org.opensaml.saml1.core.Attribute createSamlv1Attribute(java.lang.String attributeName, java.lang.String attributeUrn, java.util.List<?> values)
          Create a SAML 1.1 attribute
static java.util.List<org.opensaml.saml1.core.AttributeStatement> createSamlv1AttributeStatement(java.util.List<AttributeStatementBean> attributeData)
          Create SAML 1.1 attribute statement(s)
static org.opensaml.saml1.core.AudienceRestrictionCondition createSamlv1AudienceRestriction(java.lang.String audienceURI)
          Create an AudienceRestrictionCondition object
static java.util.List<org.opensaml.saml1.core.AuthenticationStatement> createSamlv1AuthenticationStatement(java.util.List<AuthenticationStatementBean> authBeans)
          Create SAML 1.1 authentication statement(s)
static java.util.List<org.opensaml.saml1.core.AuthorizationDecisionStatement> createSamlv1AuthorizationDecisionStatement(java.util.List<AuthDecisionStatementBean> decisionData)
          Create SAML 1.1 Authorization Decision Statement(s)
static org.opensaml.saml1.core.Conditions createSamlv1Conditions(ConditionsBean conditionsBean)
          Create a Conditions object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SAML1ComponentBuilder

public SAML1ComponentBuilder()
Method Detail

createSamlv1Assertion

public static org.opensaml.saml1.core.Assertion createSamlv1Assertion(java.lang.String issuer)
Create a new SAML 1.1 assertion

Parameters:
issuer - of type String
Returns:
A SAML 1.1 assertion

createSaml1v1Subject

public static org.opensaml.saml1.core.Subject createSaml1v1Subject(SubjectBean subjectBean)
                                                            throws org.opensaml.xml.security.SecurityException,
                                                                   WSSecurityException
Create a SAML Subject from a SubjectBean instance

Parameters:
subjectBean - A SubjectBean instance
Returns:
A Saml 1.1 subject
Throws:
org.opensaml.xml.security.SecurityException
WSSecurityException

createKeyInfo

public static org.opensaml.xml.signature.KeyInfo createKeyInfo(KeyInfoBean keyInfo)
                                                        throws org.opensaml.xml.security.SecurityException,
                                                               WSSecurityException
Create an Opensaml KeyInfo object from the parameters

Parameters:
keyInfo - the KeyInfo bean from which to extract security credentials
Returns:
the KeyInfo object
Throws:
org.opensaml.xml.security.SecurityException
WSSecurityException

createSamlv1Conditions

public static org.opensaml.saml1.core.Conditions createSamlv1Conditions(ConditionsBean conditionsBean)
Create a Conditions object

Parameters:
conditionsBean - A ConditionsBean object
Returns:
a Conditions object

createSamlv1AudienceRestriction

public static org.opensaml.saml1.core.AudienceRestrictionCondition createSamlv1AudienceRestriction(java.lang.String audienceURI)
Create an AudienceRestrictionCondition object

Parameters:
audienceURI - of type String
Returns:
an AudienceRestrictionCondition object

createSamlv1AuthenticationStatement

public static java.util.List<org.opensaml.saml1.core.AuthenticationStatement> createSamlv1AuthenticationStatement(java.util.List<AuthenticationStatementBean> authBeans)
                                                                                                           throws org.opensaml.xml.security.SecurityException,
                                                                                                                  WSSecurityException
Create SAML 1.1 authentication statement(s)

Parameters:
authBeans - A list of AuthenticationStatementBean objects
Returns:
a list of SAML 1.1 authentication statement(s)
Throws:
org.opensaml.xml.security.SecurityException
WSSecurityException

createSamlv1AttributeStatement

public static java.util.List<org.opensaml.saml1.core.AttributeStatement> createSamlv1AttributeStatement(java.util.List<AttributeStatementBean> attributeData)
                                                                                                 throws org.opensaml.xml.security.SecurityException,
                                                                                                        WSSecurityException
Create SAML 1.1 attribute statement(s)

Parameters:
attributeData - A list of AttributeStatementBean instances
Returns:
a list of SAML 1.1 attribute statement(s)
Throws:
org.opensaml.xml.security.SecurityException
WSSecurityException

createSamlv1Attribute

public static org.opensaml.saml1.core.Attribute createSamlv1Attribute(java.lang.String attributeName,
                                                                      java.lang.String attributeUrn,
                                                                      java.util.List<?> values)
Create a SAML 1.1 attribute

Parameters:
attributeName - the Attribute Name
attributeUrn - the Attribute Qualified Name
values - the Attribute Values
Returns:
a SAML 1.1 attribute

createSamlv1AuthorizationDecisionStatement

public static java.util.List<org.opensaml.saml1.core.AuthorizationDecisionStatement> createSamlv1AuthorizationDecisionStatement(java.util.List<AuthDecisionStatementBean> decisionData)
                                                                                                                         throws org.opensaml.xml.security.SecurityException,
                                                                                                                                WSSecurityException
Create SAML 1.1 Authorization Decision Statement(s)

Parameters:
decisionData - of type List
Returns:
a list of SAML 1.1 Authorization Decision Statement(s)
Throws:
org.opensaml.xml.security.SecurityException
WSSecurityException

createSamlv1Action

public static org.opensaml.saml1.core.Action createSamlv1Action(ActionBean actionBean)
Create an Action object

Parameters:
actionBean - of type SamlAction
Returns:
an Action object


Copyright © 2004-2011 The Apache Software Foundation. All Rights Reserved.