Class SAML1ComponentBuilder
- java.lang.Object
-
- org.apache.wss4j.common.saml.builder.SAML1ComponentBuilder
-
public final class SAML1ComponentBuilder extends Object
Class SAML1ComponentBuilder provides builder methods that can be used to construct SAML v1.1 statements using the OpenSaml library.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.opensaml.saml.saml1.core.Advice
createAdvice(AdviceBean adviceBean)
Create a Advice objectstatic org.opensaml.xmlsec.signature.KeyInfo
createKeyInfo(KeyInfoBean keyInfo)
Create an Opensaml KeyInfo object from the parametersstatic org.opensaml.saml.saml1.core.Subject
createSaml1v1Subject(SubjectBean subjectBean)
Create a SAML Subject from a SubjectBean instancestatic org.opensaml.saml.saml1.core.Action
createSamlv1Action(ActionBean actionBean)
Create an Action objectstatic org.opensaml.saml.saml1.core.Assertion
createSamlv1Assertion(String issuer)
Create a new SAML 1.1 assertionstatic org.opensaml.saml.saml1.core.Attribute
createSamlv1Attribute(String attributeName, String attributeUrn, List<Object> values)
Create a SAML 1.1 attributestatic List<org.opensaml.saml.saml1.core.AttributeStatement>
createSamlv1AttributeStatement(List<AttributeStatementBean> attributeData)
Create SAML 1.1 attribute statement(s)static org.opensaml.saml.saml1.core.AudienceRestrictionCondition
createSamlv1AudienceRestriction(AudienceRestrictionBean audienceRestrictionBean)
Create an AudienceRestrictionCondition objectstatic List<org.opensaml.saml.saml1.core.AuthenticationStatement>
createSamlv1AuthenticationStatement(List<AuthenticationStatementBean> authBeans)
Create SAML 1.1 authentication statement(s)static List<org.opensaml.saml.saml1.core.AuthorizationDecisionStatement>
createSamlv1AuthorizationDecisionStatement(List<AuthDecisionStatementBean> decisionData)
Create SAML 1.1 Authorization Decision Statement(s)static org.opensaml.saml.saml1.core.Conditions
createSamlv1Conditions(ConditionsBean conditionsBean)
Create a Conditions object
-
-
-
Method Detail
-
createSamlv1Assertion
public static org.opensaml.saml.saml1.core.Assertion createSamlv1Assertion(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.saml.saml1.core.Subject createSaml1v1Subject(SubjectBean subjectBean) throws org.opensaml.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.security.SecurityException
WSSecurityException
-
createKeyInfo
public static org.opensaml.xmlsec.signature.KeyInfo createKeyInfo(KeyInfoBean keyInfo) throws org.opensaml.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.security.SecurityException
WSSecurityException
-
createSamlv1Conditions
public static org.opensaml.saml.saml1.core.Conditions createSamlv1Conditions(ConditionsBean conditionsBean)
Create a Conditions object- Parameters:
conditionsBean
- A ConditionsBean object- Returns:
- a Conditions object
-
createAdvice
public static org.opensaml.saml.saml1.core.Advice createAdvice(AdviceBean adviceBean) throws WSSecurityException
Create a Advice object- Parameters:
adviceBean
- A AdviceBean object- Returns:
- a Advice object
- Throws:
WSSecurityException
-
createSamlv1AudienceRestriction
public static org.opensaml.saml.saml1.core.AudienceRestrictionCondition createSamlv1AudienceRestriction(AudienceRestrictionBean audienceRestrictionBean)
Create an AudienceRestrictionCondition object- Parameters:
audienceRestrictionBean
- of type AudienceRestrictionBean- Returns:
- an AudienceRestrictionCondition object
-
createSamlv1AuthenticationStatement
public static List<org.opensaml.saml.saml1.core.AuthenticationStatement> createSamlv1AuthenticationStatement(List<AuthenticationStatementBean> authBeans) throws org.opensaml.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.security.SecurityException
WSSecurityException
-
createSamlv1AttributeStatement
public static List<org.opensaml.saml.saml1.core.AttributeStatement> createSamlv1AttributeStatement(List<AttributeStatementBean> attributeData) throws org.opensaml.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.security.SecurityException
WSSecurityException
-
createSamlv1Attribute
public static org.opensaml.saml.saml1.core.Attribute createSamlv1Attribute(String attributeName, String attributeUrn, List<Object> values)
Create a SAML 1.1 attribute- Parameters:
attributeName
- the Attribute NameattributeUrn
- the Attribute Qualified Namevalues
- the Attribute Values- Returns:
- a SAML 1.1 attribute
-
createSamlv1AuthorizationDecisionStatement
public static List<org.opensaml.saml.saml1.core.AuthorizationDecisionStatement> createSamlv1AuthorizationDecisionStatement(List<AuthDecisionStatementBean> decisionData) throws org.opensaml.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.security.SecurityException
WSSecurityException
-
createSamlv1Action
public static org.opensaml.saml.saml1.core.Action createSamlv1Action(ActionBean actionBean)
Create an Action object- Parameters:
actionBean
- of type SamlAction- Returns:
- an Action object
-
-