|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ws.security.saml.ext.builder.SAML2ComponentBuilder
public class SAML2ComponentBuilder
Class SAML2ComponentBuilder provides builder methods that can be used to construct SAML v2.0 statements using the OpenSaml library.
Created on May 18, 2009
Constructor Summary | |
---|---|
SAML2ComponentBuilder()
|
Method Summary | |
---|---|
static org.opensaml.saml2.core.Assertion |
createAssertion()
Create a SAML 2 assertion |
static org.opensaml.saml2.core.Attribute |
createAttribute(String friendlyName,
String name)
Deprecated. |
static org.opensaml.saml2.core.Attribute |
createAttribute(String friendlyName,
String name,
List<String> values)
Deprecated. |
static org.opensaml.saml2.core.Attribute |
createAttribute(String friendlyName,
String name,
String nameFormat)
Create an Attribute object. |
static org.opensaml.saml2.core.Attribute |
createAttribute(String friendlyName,
String name,
String nameFormat,
List<?> values)
Create a SAML2 Attribute |
static List<org.opensaml.saml2.core.AttributeStatement> |
createAttributeStatement(List<AttributeStatementBean> attributeData)
Create SAML2 Attribute Statement(s) |
static org.opensaml.saml2.core.AudienceRestriction |
createAudienceRestriction(String audienceURI)
Create an AudienceRestriction object |
static List<org.opensaml.saml2.core.AuthnStatement> |
createAuthnStatement(List<AuthenticationStatementBean> authBeans)
Create SAML 2 Authentication Statement(s). |
static List<org.opensaml.saml2.core.AuthzDecisionStatement> |
createAuthorizationDecisionStatement(List<AuthDecisionStatementBean> decisionData)
Create SAML2 AuthorizationDecisionStatement(s) |
static org.opensaml.saml2.core.Conditions |
createConditions(ConditionsBean conditionsBean)
Create a Conditions object |
static org.opensaml.saml2.core.Issuer |
createIssuer(String issuerValue)
Create an Issuer object |
static org.opensaml.saml2.core.NameID |
createNameID(SubjectBean subject)
Create a NameID object One of the following formats MUST be used: urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress urn:oasis:names:tc:SAML:1.1:nameid-format:X509SubjectName urn:oasis:names:tc:SAML:1.1:nameid-format:WindowsDomainQualifiedName urn:oasis:names:tc:SAML:2.0:nameid-format:kerberos urn:oasis:names:tc:SAML:2.0:nameid-format:entity urn:oasis:names:tc:SAML:2.0:nameid-format:persistent urn:oasis:names:tc:SAML:2.0:nameid-format:transient |
static org.opensaml.saml2.core.Subject |
createSaml2Subject(SubjectBean subjectBean)
Create a Subject. |
static org.opensaml.saml2.core.Action |
createSamlAction(ActionBean actionBean)
Create an Action object |
static org.opensaml.saml2.core.SubjectConfirmation |
createSubjectConfirmation(String method,
org.opensaml.saml2.core.SubjectConfirmationData subjectConfirmationData)
Create a SubjectConfirmation object One of the following subject confirmation methods MUST be used: urn:oasis:names:tc:SAML:2.0:cm:holder-of-key urn:oasis:names:tc:SAML:2.0:cm:sender-vouches urn:oasis:names:tc:SAML:2.0:cm:bearer |
static org.opensaml.saml2.core.SubjectConfirmationData |
createSubjectConfirmationData(String inResponseTo,
String recipient,
org.joda.time.DateTime notOnOrAfter,
KeyInfoBean keyInfoBean)
Create a SubjectConfirmationData object |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SAML2ComponentBuilder()
Method Detail |
---|
public static org.opensaml.saml2.core.Assertion createAssertion()
public static org.opensaml.saml2.core.Issuer createIssuer(String issuerValue)
issuerValue
- of type String
public static org.opensaml.saml2.core.Conditions createConditions(ConditionsBean conditionsBean)
conditionsBean
- A ConditionsBean object
public static org.opensaml.saml2.core.AudienceRestriction createAudienceRestriction(String audienceURI)
audienceURI
- of type String
public static List<org.opensaml.saml2.core.AuthnStatement> createAuthnStatement(List<AuthenticationStatementBean> authBeans)
authBeans
- A list of AuthenticationStatementBean instances
public static org.opensaml.saml2.core.Attribute createAttribute(String friendlyName, String name, List<String> values)
friendlyName
- of type Stringname
- of type Stringvalues
- of type ArrayList
public static org.opensaml.saml2.core.Attribute createAttribute(String friendlyName, String name, String nameFormat, List<?> values)
friendlyName
- of type Stringname
- of type StringnameFormat
- of type Stringvalues
- of type ArrayList
public static org.opensaml.saml2.core.Subject createSaml2Subject(SubjectBean subjectBean) throws org.opensaml.xml.security.SecurityException, WSSecurityException
subjectBean
- of type SubjectBean
org.opensaml.xml.security.SecurityException
WSSecurityException
public static org.opensaml.saml2.core.SubjectConfirmationData createSubjectConfirmationData(String inResponseTo, String recipient, org.joda.time.DateTime notOnOrAfter, KeyInfoBean keyInfoBean) throws org.opensaml.xml.security.SecurityException, WSSecurityException
inResponseTo
- of type Stringrecipient
- of type StringnotOnOrAfter
- of type DateTimekeyInfoBean
- of type KeyInfoBean
org.opensaml.xml.security.SecurityException
WSSecurityException
public static org.opensaml.saml2.core.SubjectConfirmation createSubjectConfirmation(String method, org.opensaml.saml2.core.SubjectConfirmationData subjectConfirmationData)
method
- of type StringsubjectConfirmationData
- of type SubjectConfirmationData
public static org.opensaml.saml2.core.NameID createNameID(SubjectBean subject)
subject
- A SubjectBean instance
public static List<org.opensaml.saml2.core.AttributeStatement> createAttributeStatement(List<AttributeStatementBean> attributeData)
attributeData
- A list of AttributeStatementBean instances
public static org.opensaml.saml2.core.Attribute createAttribute(String friendlyName, String name)
friendlyName
- of type Stringname
- of type String
public static org.opensaml.saml2.core.Attribute createAttribute(String friendlyName, String name, String nameFormat)
friendlyName
- of type Stringname
- of type StringnameFormat
- of type String
public static List<org.opensaml.saml2.core.AuthzDecisionStatement> createAuthorizationDecisionStatement(List<AuthDecisionStatementBean> decisionData)
decisionData
- A list of AuthDecisionStatementBean instances
public static org.opensaml.saml2.core.Action createSamlAction(ActionBean actionBean)
actionBean
- An ActionBean instance
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |