| java.lang.Object com.sun.xml.wss.saml.SAMLAssertionFactory
All known Subclasses: com.sun.xml.wss.saml.impl.SAMLAssertion2_2FactoryImpl, com.sun.xml.wss.saml.impl.SAMLAssertion1_1FactoryImpl, com.sun.xml.wss.saml.impl.SAMLAssertion2_1FactoryImpl,
SAMLAssertionFactory | abstract public class SAMLAssertionFactory (Code) | | author: abhijit.das@Sun.com |
Method Summary | |
abstract public Action | createAction(String action, String namespace) Creates an Action element. | abstract public Advice | createAdvice(List assertionidreference, List assertion, List otherelement) Creates an Advice element. | abstract public AnyType | createAnyType() Creates an AnyType element if the System property "com.sun.xml.wss.saml.binding.jaxb"
is set. | abstract public Assertion | createAssertion(String assertionID, java.lang.String issuer, GregorianCalendar issueInstant, Conditions conditions, Advice advice, List statements) Creates and return an Assertion from the data members: the
assertionID , the issuer, time when assertion issued,
the conditions when creating a new assertion , Advice
applicable to this Assertion and a set of
Statement (s) in the assertion.
Parameters: assertionID - AssertionID object contained within thisAssertion if null its generated internally. Parameters: issuer - The issuer of this assertion. Parameters: issueInstant - Time instant of the issue. | abstract public Assertion | createAssertion(String ID, NameID issuer, GregorianCalendar issueInstant, Conditions conditions, Advice advice, Subject subject, List statements) | abstract public Assertion | createAssertion(org.w3c.dom.Element element) Creates and returns an Assertion object from the given SAML org.w3c.dom.Element . | abstract public Assertion | createAssertion(XMLStreamReader reader) Creates and returns an Assertion object from the given SAML XMLStreamReader . | abstract public AssertionIDRef | createAssertionIDRef() | abstract public AssertionIDRef | createAssertionIDRef(String id) | abstract public AssertionIDReference | createAssertionIDReference() Creates and returns an AssertionIDReference object. | abstract public AssertionIDReference | createAssertionIDReference(String id) Creates and returns an AssertionIDReference object. | abstract public Attribute | createAttribute(String name, String nameSpace, List values) Constructs an instance of Attribute . | abstract public Attribute | createAttribute(String name, List values) | abstract public AttributeDesignator | createAttributeDesignator(String name, String nameSpace) Constructs an instance of AttributeDesignator . | abstract public AttributeStatement | createAttributeStatement(Subject subj, List attr) Constructs an instance of AttributeStatement . | abstract public AttributeStatement | createAttributeStatement(List attr) | abstract public AudienceRestriction | createAudienceRestriction(List audience) | abstract public AudienceRestrictionCondition | createAudienceRestrictionCondition(List audience) Constructs an instance of AudienceRestrictionCondition . | abstract public AuthenticationStatement | createAuthenticationStatement(String authMethod, GregorianCalendar authInstant, Subject subject, SubjectLocality subjectLocality, List authorityBinding) Constructs an instance of AuthenticationStatement .
Parameters: authMethod - (optional) A String specifies the type of authenticationthat took place. | abstract public AuthnContext | createAuthnContext() | abstract public AuthnDecisionStatement | createAuthnDecisionStatement(String resource, String decision, List action, Evidence evidence) | abstract public AuthnStatement | createAuthnStatement(GregorianCalendar authInstant, SubjectLocality subjectLocality, AuthnContext authnContext) | abstract public AuthorityBinding | createAuthorityBinding(QName authKind, String location, String binding) Constructs an instance of AuthorityBinding . | abstract public AuthorizationDecisionStatement | createAuthorizationDecisionStatement(Subject subject, String resource, String decision, List action, Evidence evidence) Constructs an instance of AuthorizationDecisionStatement . | abstract public Conditions | createConditions() Constructs an instance of default Conditions object. | abstract public Conditions | createConditions(GregorianCalendar notBefore, GregorianCalendar notOnOrAfter, List condition, List arc, List doNotCacheCnd) Constructs an instance of Conditions .
Parameters: notBefore - specifies the earliest time instant at which theassertion is valid. Parameters: notOnOrAfter - specifies the time instant at which the assertionhas expired. Parameters: condition - Parameters: arc - the AudienceRestrictionCondition to beadded. | abstract public Conditions | createConditions(GregorianCalendar notBefore, GregorianCalendar notOnOrAfter, List condition, List ar, List oneTimeUse, List proxyRestriction) | abstract public DoNotCacheCondition | createDoNotCacheCondition() | abstract public Evidence | createEvidence(List assertionIDRef, List assertion) Constructs an Evidence from a List of Assertion and
AssertionIDReference objects. | abstract public KeyInfoConfirmationData | createKeyInfoConfirmationData(Element keyInfo) | abstract public NameID | createNameID(String name, String nameQualifier, String format) | abstract public NameIdentifier | createNameIdentifier(String name, String nameQualifier, String format) Constructs a NameQualifier instance.
Parameters: name - The string representing the name of the Subject Parameters: nameQualifier - The security or administrative domain that qualifiesthe name of the Subject . | abstract public OneTimeUse | createOneTimeUse() | abstract public Subject | createSubject(NameIdentifier nameIdentifier, SubjectConfirmation subjectConfirmation) Constructs a Subject object from a NameIdentifier
object and a SubjectConfirmation object. | abstract public Subject | createSubject(NameID nameID, SubjectConfirmation subjectConfirmation) | abstract public SubjectConfirmation | createSubjectConfirmation(String confirmationMethod) Creates and returns a SubjectConfirmation object.
Parameters: confirmationMethod - A URI (String) that identifies a protocol usedto authenticate a Subject . | abstract public SubjectConfirmation | createSubjectConfirmation(NameID nameID, String method) | abstract public SubjectConfirmation | createSubjectConfirmation(List confirmationMethods, SubjectConfirmationData scd, KeyInfo keyInfo) | abstract public SubjectConfirmation | createSubjectConfirmation(List confirmationMethods, Element subjectConfirmationData, Element keyInfo) Constructs a SubjectConfirmation instance.
Parameters: confirmationMethods - A list of confirmationMethods each of which is a URI (String) that identifies a protocolused to authenticate a Subject . | abstract public SubjectConfirmation | createSubjectConfirmation(NameID nameID, SubjectConfirmationData subjectConfirmationData, String confirmationMethod) | abstract public SubjectConfirmation | createSubjectConfirmation(NameID nameID, KeyInfoConfirmationData keyInfoConfirmationData, String confirmationMethod) | abstract public SubjectConfirmationData | createSubjectConfirmationData(String address, String inResponseTo, GregorianCalendar notBefore, GregorianCalendar notOnOrAfter, String recipient, Element keyInfo) | abstract public SubjectConfirmationData | createSubjectConfirmationData(String address, String inResponseTo, GregorianCalendar notBefore, GregorianCalendar notOnOrAfter, String recipient, KeyInfo keyInfo) | abstract public SubjectLocality | createSubjectLocality() Constructs a SubjectLocality instance. | abstract public SubjectLocality | createSubjectLocality(String ipAddress, String dnsAddress) Constructs an instance of SubjectLocality .
Parameters: ipAddress - String representing the IP Address of the entitythat was authenticated. Parameters: dnsAddress - String representing the DNS Address of the entity thatwas authenticated. | public static SAMLAssertionFactory | newInstance(String samlVersion) Create an instance of SAMLAssertionFactory.
Parameters: samlVersion - A String representing the saml version. |
SAML1_1 | final public static String SAML1_1(Code) | | SAML Version 1.1 & SAML Version 2.0
|
SAMLAssertionFactory | protected SAMLAssertionFactory()(Code) | | |
createAction | abstract public Action createAction(String action, String namespace)(Code) | | Creates an Action element.
Parameters: namespace - The attribute "namespace" ofAction element Parameters: action - A String representing an action |
createAdvice | abstract public Advice createAdvice(List assertionidreference, List assertion, List otherelement)(Code) | | Creates an Advice element.
Parameters: assertionidreference - A List of AssertionIDReference . Parameters: assertion - A List of Assertion Parameters: otherelement - A List of any element defined as |
createAnyType | abstract public AnyType createAnyType()(Code) | | Creates an AnyType element if the System property "com.sun.xml.wss.saml.binding.jaxb"
is set. Otherwise returns null.
|
createAssertion | abstract public Assertion createAssertion(String assertionID, java.lang.String issuer, GregorianCalendar issueInstant, Conditions conditions, Advice advice, List statements) throws SAMLException(Code) | | Creates and return an Assertion from the data members: the
assertionID , the issuer, time when assertion issued,
the conditions when creating a new assertion , Advice
applicable to this Assertion and a set of
Statement (s) in the assertion.
Parameters: assertionID - AssertionID object contained within thisAssertion if null its generated internally. Parameters: issuer - The issuer of this assertion. Parameters: issueInstant - Time instant of the issue. It has typedateTime which is built in to the W3C XML SchemaTypes specification. if null, current time is used. Parameters: conditions - Conditions under which the thisAssertion is valid. Parameters: advice - Advice applicable for thisAssertion . Parameters: statements - List of Statement objects within thisAssertion . It could be of typeAuthenticationStatement ,AuthorizationDecisionStatement andAttributeStatement . Each Assertion can havemultiple type of statements in it. exception: SAMLException - if there is an error in processing input. |
createAssertion | abstract public Assertion createAssertion(org.w3c.dom.Element element) throws SAMLException(Code) | | Creates and returns an Assertion object from the given SAML org.w3c.dom.Element .
Parameters: element - A org.w3c.dom.Element representingDOM tree for Assertion object exception: SAMLException - if it could not process the Element properly,implying that there is an error in the sender or in theelement definition. |
createAssertion | abstract public Assertion createAssertion(XMLStreamReader reader) throws SAMLException(Code) | | Creates and returns an Assertion object from the given SAML XMLStreamReader .
Parameters: reader - An XMLStreamReader representingthe tree for an Assertion object exception: SAMLException - if it could not process the Element properly,implying that there is an error in the sender or in theelement definition. |
createAssertionIDReference | abstract public AssertionIDReference createAssertionIDReference()(Code) | | Creates and returns an AssertionIDReference object. AssertionID
will be generated automatically.
null if the system property "com.sun.xml.wss.saml.binding.jaxb" is not setotherwise returns AssertionIDReference. |
createAssertionIDReference | abstract public AssertionIDReference createAssertionIDReference(String id)(Code) | | Creates and returns an AssertionIDReference object.
Parameters: id - String of an AssertionID null if the system property "com.sun.xml.wss.saml.binding.jaxb" is not setotherwise returns AssertionIDReference. |
createAttribute | abstract public Attribute createAttribute(String name, String nameSpace, List values)(Code) | | Constructs an instance of Attribute .
Parameters: name - A String representing AttributeName (the nameof the attribute). Parameters: nameSpace - A String representing the namespace in whichAttributeName elements are interpreted. Parameters: values - A List representing the AttributeValue object. |
createAttributeDesignator | abstract public AttributeDesignator createAttributeDesignator(String name, String nameSpace)(Code) | | Constructs an instance of AttributeDesignator .
Parameters: name - the name of the attribute. Parameters: nameSpace - the namespace in which AttributeName elements are interpreted. |
createAttributeStatement | abstract public AttributeStatement createAttributeStatement(Subject subj, List attr)(Code) | | Constructs an instance of AttributeStatement .
Parameters: subj - SAML Subject Parameters: attr - List of attributes |
createAudienceRestrictionCondition | abstract public AudienceRestrictionCondition createAudienceRestrictionCondition(List audience)(Code) | | Constructs an instance of AudienceRestrictionCondition .
It takes in a List of audience for this
condition, each of them being a String.
Parameters: audience - A List of audience to be included within this condition |
createAuthenticationStatement | abstract public AuthenticationStatement createAuthenticationStatement(String authMethod, GregorianCalendar authInstant, Subject subject, SubjectLocality subjectLocality, List authorityBinding)(Code) | | Constructs an instance of AuthenticationStatement .
Parameters: authMethod - (optional) A String specifies the type of authenticationthat took place. Pass null if not required. Parameters: authInstant - (optional) A GregorianCalendar object specifing the time at which theauthentication that took place. Pass null if not required. Parameters: subject - (required) A Subject object Parameters: subjectLocality - (optional) A SubjectLocality object. Pass null if not required. Parameters: authorityBinding - (optional) A List of AuthorityBinding . Pass null if not required.objects. |
createAuthorityBinding | abstract public AuthorityBinding createAuthorityBinding(QName authKind, String location, String binding)(Code) | | Constructs an instance of AuthorityBinding .
Parameters: authKind - A QName representing the type of SAML protocol queriesto which the authority described by this element willrespond. Parameters: location - A String representing a URI reference describing how to locate and communicate with theauthority. Parameters: binding - A String representing a URI reference identifying the SAMLprotocol binding to use in communicating with the authority. |
createAuthorizationDecisionStatement | abstract public AuthorizationDecisionStatement createAuthorizationDecisionStatement(Subject subject, String resource, String decision, List action, Evidence evidence)(Code) | | Constructs an instance of AuthorizationDecisionStatement .
Parameters: subject - (required) A Subject object Parameters: resource - (required) A String identifying the resource to whichaccess authorization is sought. Parameters: decision - (required) The decision rendered by the issuer withrespect to the specified resource. Parameters: action - (required) A List of Action objects specifying the set ofactions authorized to be performed on the specified resource. Parameters: evidence - (optional) An Evidence object representing a set ofassertions that the issuer replied on in making decisions. |
createConditions | abstract public Conditions createConditions()(Code) | | Constructs an instance of default Conditions object.
|
createConditions | abstract public Conditions createConditions(GregorianCalendar notBefore, GregorianCalendar notOnOrAfter, List condition, List arc, List doNotCacheCnd)(Code) | | Constructs an instance of Conditions .
Parameters: notBefore - specifies the earliest time instant at which theassertion is valid. Parameters: notOnOrAfter - specifies the time instant at which the assertionhas expired. Parameters: condition - Parameters: arc - the AudienceRestrictionCondition to beadded. Can be null, if no audience restriction. Parameters: doNotCacheCnd - |
createDoNotCacheCondition | abstract public DoNotCacheCondition createDoNotCacheCondition()(Code) | | Constructs an instance of DoNotCacheCondition
|
createEvidence | abstract public Evidence createEvidence(List assertionIDRef, List assertion)(Code) | | Constructs an Evidence from a List of Assertion and
AssertionIDReference objects.
Parameters: assertionIDRef - List of AssertionIDReference objects. Parameters: assertion - List of Assertion objects. |
createNameIdentifier | abstract public NameIdentifier createNameIdentifier(String name, String nameQualifier, String format)(Code) | | Constructs a NameQualifier instance.
Parameters: name - The string representing the name of the Subject Parameters: nameQualifier - The security or administrative domain that qualifiesthe name of the Subject . This is optional could benull. Parameters: format - The syntax used to describe the name of theSubject . This optional, could be null. |
createSubject | abstract public Subject createSubject(NameIdentifier nameIdentifier, SubjectConfirmation subjectConfirmation)(Code) | | Constructs a Subject object from a NameIdentifier
object and a SubjectConfirmation object.
Parameters: nameIdentifier - NameIdentifier object. Parameters: subjectConfirmation - SubjectConfirmation object. |
createSubjectConfirmation | abstract public SubjectConfirmation createSubjectConfirmation(String confirmationMethod)(Code) | | Creates and returns a SubjectConfirmation object.
Parameters: confirmationMethod - A URI (String) that identifies a protocol usedto authenticate a Subject . Please refer todraft-sstc-core-25 Section 7 for a list of URIsidentifying common authentication protocols. |
createSubjectConfirmation | abstract public SubjectConfirmation createSubjectConfirmation(List confirmationMethods, Element subjectConfirmationData, Element keyInfo) throws SAMLException(Code) | | Constructs a SubjectConfirmation instance.
Parameters: confirmationMethods - A list of confirmationMethods each of which is a URI (String) that identifies a protocolused to authenticate a Subject . Please refer todraft-sstc-core-25 Section 7 fora list of URIs identifying common authentication protocols. Parameters: subjectConfirmationData - Additional authentication information tobe used by a specific authentication protocol. Can be passed asnull if there is no subjectConfirmationData for theSubjectConfirmation object. Parameters: keyInfo - An XML signature element that specifies a cryptographickey held by the Subject . |
createSubjectLocality | abstract public SubjectLocality createSubjectLocality()(Code) | | Constructs a SubjectLocality instance.
|
createSubjectLocality | abstract public SubjectLocality createSubjectLocality(String ipAddress, String dnsAddress)(Code) | | Constructs an instance of SubjectLocality .
Parameters: ipAddress - String representing the IP Address of the entitythat was authenticated. Parameters: dnsAddress - String representing the DNS Address of the entity thatwas authenticated. As per SAML specification they are bothoptional, so values can be null. |
newInstance | public static SAMLAssertionFactory newInstance(String samlVersion) throws XWSSecurityException(Code) | | Create an instance of SAMLAssertionFactory.
Parameters: samlVersion - A String representing the saml version. Possible values {SAMLAssertionFactory.SAML1_1} & {SAMLAssertionFactory.SAML2_0} |
|
|