public class SAMLAssertionFactory extends Object
AssertionType| Constructor and Description |
|---|
SAMLAssertionFactory() |
| Modifier and Type | Method and Description |
|---|---|
static AssertionType |
createAssertion(String id,
NameIDType issuerID,
XMLGregorianCalendar issueInstant,
ConditionsType conditions,
SubjectType subject,
List<StatementAbstractType> statements)
Creates a SAMLV2
AssertionType with the specified values. |
static AudienceRestrictionType |
createAudienceRestriction(String... values)
Creates an
AudienceRestrictionType with the specified values. |
static ConditionsType |
createConditions(XMLGregorianCalendar notBefore,
XMLGregorianCalendar notOnOrAfter,
ConditionAbstractType... restrictions)
Creates a
Conditions instance with the specified values. |
static KeyInfoConfirmationDataType |
createKeyInfoConfirmation(KeyInfoType keyInfo)
Creates a
KeyInfoConfirmationDataType with the specified KeyInfoType. |
static NameIDType |
createNameID(String format,
String qualifier,
String value)
Creates a
NameIDType instance with the specified values. |
static SubjectType |
createSubject(NameIDType nameID,
SubjectConfirmationType confirmation)
Creates a
SubjectType object with the specified values. |
static SubjectConfirmationType |
createSubjectConfirmation(NameIDType nameID,
String confirmationMethod,
KeyInfoConfirmationDataType keyInfoData)
Creates a
SubjectConfirmationType object with the specified values. |
public static AudienceRestrictionType createAudienceRestriction(String... values)
Creates an AudienceRestrictionType with the specified values.
values - a String[] containing the restriction values.AudienceRestrictionType instance.public static NameIDType createNameID(String format, String qualifier, String value)
Creates a NameIDType instance with the specified values.
format - a String representing the name format.qualifier - a String representing the name qualifier.value - a String representing the name value.NameIDType instance.public static ConditionsType createConditions(XMLGregorianCalendar notBefore, XMLGregorianCalendar notOnOrAfter, ConditionAbstractType... restrictions)
Creates a Conditions instance with the specified values.
notBefore - a XMLGregorianCalendar representing the start of the token lifetime period.notOnOrAfter - a XMLGregorianCalendar representing the end of the token lifetime period.restrictions - an array containing the applicable restrictions.Conditions instance.public static KeyInfoConfirmationDataType createKeyInfoConfirmation(KeyInfoType keyInfo)
Creates a KeyInfoConfirmationDataType with the specified KeyInfoType.
keyInfo - the KeyInfoType object that wraps the proof-of-possession token.KeyInfoConfirmationDataType instance.public static SubjectConfirmationType createSubjectConfirmation(NameIDType nameID, String confirmationMethod, KeyInfoConfirmationDataType keyInfoData)
Creates a SubjectConfirmationType object with the specified values.
nameID - the identifier of the confirmation.confirmationMethod - a String representing the confirmation method.keyInfoData - the KeyInfoConfirmationDataType instance that contains the proof of possession key.SubjectConfirmationType instance.public static SubjectType createSubject(NameIDType nameID, SubjectConfirmationType confirmation)
Creates a SubjectType object with the specified values.
nameID - the identifier of the subject.confirmation - the SubjectConfirmationType that is used to establish the correspondence between the
subject
and claims of SAML statements.SubjectType instance.public static AssertionType createAssertion(String id, NameIDType issuerID, XMLGregorianCalendar issueInstant, ConditionsType conditions, SubjectType subject, List<StatementAbstractType> statements)
Creates a SAMLV2 AssertionType with the specified values.
id - a String representing the assertion ID.issuerID - a NameIDType that identifies the assertion issuer.issueInstant - the assertion time of creation.conditions - the ConditionsType that specify the conditions under which the assertion is to be
considered
validsubject - the SubjectType that identifies the authenticated principal.statements - a list of statements associated with the authenticated principal.Copyright © 2016 JBoss by Red Hat. All rights reserved.