Package com.sun.xml.wss.saml.impl
Class SAMLAssertion2_2FactoryImpl
java.lang.Object
com.sun.xml.wss.saml.SAMLAssertionFactory
com.sun.xml.wss.saml.impl.SAMLAssertion2_2FactoryImpl
- Author:
- root
-
Field Summary
Fields inherited from class com.sun.xml.wss.saml.SAMLAssertionFactory
SAML_VER_CHECK, SAML1_1, SAML2_0 -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance of SAMLAssertion2_2FactoryImpl -
Method Summary
Modifier and TypeMethodDescriptioncreateAction(String action, String namespace) Creates anActionelement.createAction(Element actionElement) createAdvice(List assertionidreference, List assertion, List otherelement) Creates anAdviceelement.Creates anAnyTypeelement if the System property "com.sun.xml.wss.saml.binding.jaxb" is set.createAssertion(String ID, NameID issuer, GregorianCalendar issueInstant, Conditions conditions, Advice advice, Subject subject, List statements) Creates and return an Assertion from the data members: theID, the issuer, time when assertion issued, the conditions when creating a new assertion ,Adviceapplicable to thisAssertion,Subjectand a set ofStatement(s) in the assertion.createAssertion(String ID, NameID issuer, GregorianCalendar issueInstant, Conditions conditions, Advice advice, Subject subject, List statements, jakarta.xml.bind.JAXBContext jcc) Creates and return an Assertion from the data members: theID, the issuer, time when assertion issued, the conditions when creating a new assertion ,Adviceapplicable to thisAssertion,Subject, a set ofStatement(s) ,and a jaxbcontext for the assertion.createAssertion(String assertionID, String issuer, GregorianCalendar issueInstant, Conditions conditions, Advice advice, List statements) Creates and return an Assertion from the data members: theassertionID, the issuer, time when assertion issued, the conditions when creating a new assertion ,Adviceapplicable to thisAssertionand a set ofStatement(s) in the assertion.createAssertion(String assertionID, String issuer, GregorianCalendar issueInstant, Conditions conditions, Advice advice, List statements, jakarta.xml.bind.JAXBContext jcc) createAssertion(XMLStreamReader reader) Creates and returns anAssertionobject from the given SAMLXMLStreamReader.createAssertion(Element element) Creates and returns anAssertionobject from the given SAMLorg.w3c.dom.Element.Creates and returns anAssertionIDRefobject.Creates and returns anAssertionIDRefobject.Creates and returns anAssertionIDReferenceobject.Creates and returns anAssertionIDReferenceobject.createAttribute(String name, String nameSpace, List values) Constructs an instance ofAttribute.createAttribute(String name, List values) Constructs an instance ofAttribute.createAttributeDesignator(String name, String nameSpace) Constructs an instance ofAttributeDesignator.createAttributeStatement(Subject subj, List attr) Constructs an instance ofAttributeStatement.createAttributeStatement(List attr) Constructs an instance ofAttributeStatement.createAudienceRestriction(List audience) Constructs an instance ofAudienceRestriction.createAudienceRestrictionCondition(List audience) Constructs an instance ofAudienceRestrictionCondition.createAuthenticationStatement(String authMethod, GregorianCalendar authInstant, Subject subject, SubjectLocality subjectLocality, List authorityBinding) Constructs an instance ofAuthenticationStatement.createAuthnContext(String authContextClassref, String authenticatingAuthority) createAuthnDecisionStatement(String resource, String decision, List action, Evidence evidence) Constructs an instance ofAuthnDecisionStatement.createAuthnStatement(GregorianCalendar authInstant, SubjectLocality subjectLocality, AuthnContext authnContext, String sessionIndex, GregorianCalendar sessionNotOnOrAfter) Constructs an instance ofAuthenticationStatement.createAuthorityBinding(QName authKind, String location, String binding) Constructs an instance ofAuthorityBinding.createAuthorizationDecisionStatement(Subject subject, String resource, String decision, List action, Evidence evidence) Constructs an instance ofAuthorizationDecisionStatement.Constructs an instance of defaultConditionsobject.createConditions(GregorianCalendar notBefore, GregorianCalendar notOnOrAfter, List condition, List arc, List doNotCacheCnd) Constructs an instance ofConditions.createConditions(GregorianCalendar notBefore, GregorianCalendar notOnOrAfter, List condition, List ar, List oneTimeUse, List proxyRestriction) Constructs an instance ofConditions.Constructs an instance ofDoNotCacheConditioncreateEvidence(List assertionIDRef, List assertion) Constructs an Evidence from a List ofAssertionandAssertionIDReferenceobjects.createKeyInfoConfirmationData(Element keyInfo) createNameID(String name, String nameQualifier, String format) Constructs aNameIDinstance.createNameIdentifier(String name, String nameQualifier, String format) Constructs aNameQualifierinstance.createSubject(NameIdentifier nameIdentifier, SubjectConfirmation subjectConfirmation) Constructs a Subject object from aNameIdentifierobject and aSubjectConfirmationobject.createSubject(NameID nameID, SubjectConfirmation subjectConfirmation) Constructs a Subject object from aNameIDobject and aSubjectConfirmationobject.createSubjectConfirmation(NameID nameID, KeyInfoConfirmationData keyInfoConfirmationData, String confirmationMethod) Constructs aSubjectConfirmationinstance.createSubjectConfirmation(NameID nameID, SubjectConfirmationData subjectConfirmationData, String confirmationMethod) Constructs aSubjectConfirmationinstance.createSubjectConfirmation(NameID nameID, String method) Creates and returns aSubjectConfirmationobject.createSubjectConfirmation(String confirmationMethod) Creates and returns aSubjectConfirmationobject.createSubjectConfirmation(List confirmationMethods, SubjectConfirmationData scd, KeyInfo keyInfo) createSubjectConfirmation(List confirmationMethods, Element subjectConfirmationData, Element keyInfo) Constructs aSubjectConfirmationinstance.createSubjectConfirmationData(String address, String inResponseTo, GregorianCalendar notBefore, GregorianCalendar notOnOrAfter, String recipient, KeyInfo keyInfo) createSubjectConfirmationData(String address, String inResponseTo, GregorianCalendar notBefore, GregorianCalendar notOnOrAfter, String recipient, Element keyInfo) Constructs aSubjectLocalityinstance.createSubjectLocality(String ipAddress, String dnsAddress) Constructs an instance ofSubjectLocality.Methods inherited from class com.sun.xml.wss.saml.SAMLAssertionFactory
newInstance
-
Constructor Details
-
SAMLAssertion2_2FactoryImpl
public SAMLAssertion2_2FactoryImpl()Creates a new instance of SAMLAssertion2_2FactoryImpl
-
-
Method Details
-
createAction
-
createAction
Description copied from class:SAMLAssertionFactoryCreates anActionelement.- Specified by:
createActionin classSAMLAssertionFactory- Parameters:
action- A String representing an actionnamespace- The attribute "namespace" ofActionelement
-
createAdvice
Description copied from class:SAMLAssertionFactoryCreates anAdviceelement.- Specified by:
createAdvicein classSAMLAssertionFactory- Parameters:
assertionidreference- A List ofAssertionIDReference.assertion- A List of Assertionotherelement- A List of any element defined as
-
createAnyType
Description copied from class:SAMLAssertionFactoryCreates anAnyTypeelement if the System property "com.sun.xml.wss.saml.binding.jaxb" is set. Otherwise returns null.- Specified by:
createAnyTypein classSAMLAssertionFactory
-
createAssertion
Description copied from class:SAMLAssertionFactoryCreates and returns anAssertionobject from the given SAMLorg.w3c.dom.Element.- Specified by:
createAssertionin classSAMLAssertionFactory- Parameters:
element- Aorg.w3c.dom.Elementrepresenting DOM tree forAssertionobject- Throws:
SAMLException- if it could not process the Element properly, implying that there is an error in the sender or in the element definition.
-
createAssertion
public Assertion createAssertion(String assertionID, String issuer, GregorianCalendar issueInstant, Conditions conditions, Advice advice, List statements) Description copied from class:SAMLAssertionFactoryCreates and return an Assertion from the data members: theassertionID, the issuer, time when assertion issued, the conditions when creating a new assertion ,Adviceapplicable to thisAssertionand a set ofStatement(s) in the assertion.- Specified by:
createAssertionin classSAMLAssertionFactory- Parameters:
assertionID-AssertionIDobject contained within thisAssertionif null its generated internally.issuer- The issuer of this assertion.issueInstant- Time instant of the issue. It has typedateTimewhich is built in to the W3C XML Schema Types specification. if null, current time is used.conditions-Conditionsunder which the thisAssertionis valid.advice-Adviceapplicable for thisAssertion.statements- List ofStatementobjects within thisAssertion. It could be of typeAuthenticationStatement,AuthorizationDecisionStatementandAttributeStatement. Each Assertion can have multiple type of statements in it.
-
createAssertion
public Assertion createAssertion(String assertionID, String issuer, GregorianCalendar issueInstant, Conditions conditions, Advice advice, List statements, jakarta.xml.bind.JAXBContext jcc) - Specified by:
createAssertionin classSAMLAssertionFactory
-
createAssertion
public Assertion createAssertion(String ID, NameID issuer, GregorianCalendar issueInstant, Conditions conditions, Advice advice, Subject subject, List statements) throws SAMLException Description copied from class:SAMLAssertionFactoryCreates and return an Assertion from the data members: theID, the issuer, time when assertion issued, the conditions when creating a new assertion ,Adviceapplicable to thisAssertion,Subjectand a set ofStatement(s) in the assertion.- Specified by:
createAssertionin classSAMLAssertionFactory- Parameters:
ID-IDobject contained within thisAssertionif null its generated internally.issuer- The issuer of this assertion.issueInstant- Time instant of the issue. It has typedateTimewhich is built in to the W3C XML Schema Types specification. if null, current time is used.conditions-Conditionsunder which the thisAssertionis valid.advice-Adviceapplicable for thisAssertion.subject-Subjectapplicable for thisAssertionstatements- List ofStatementobjects within thisAssertion. It could be of typeAuthnStatement,AuthzDecisionStatementandAttributeStatement. Each Assertion can have multiple type of statements in it.- Throws:
SAMLException- if there is an error in processing input.
-
createAssertion
public Assertion createAssertion(String ID, NameID issuer, GregorianCalendar issueInstant, Conditions conditions, Advice advice, Subject subject, List statements, jakarta.xml.bind.JAXBContext jcc) throws SAMLException Description copied from class:SAMLAssertionFactoryCreates and return an Assertion from the data members: theID, the issuer, time when assertion issued, the conditions when creating a new assertion ,Adviceapplicable to thisAssertion,Subject, a set ofStatement(s) ,and a jaxbcontext for the assertion.- Specified by:
createAssertionin classSAMLAssertionFactory- Parameters:
ID-IDobject contained within thisAssertionif null its generated internally.issuer- The issuer of this assertion.issueInstant- Time instant of the issue. It has typedateTimewhich is built in to the W3C XML Schema Types specification. if null, current time is used.conditions-Conditionsunder which the thisAssertionis valid.advice-Adviceapplicable for thisAssertion.subject-Subjectapplicable for thisAssertionstatements- List ofStatementobjects within thisAssertion. It could be of typeAuthnStatement,AuthzDecisionStatementandAttributeStatement. Each Assertion can have multiple type of statements in it.jcc- JAXBContext to be used for marshaling and unmarshalling the assertions.- Throws:
SAMLException- if there is an error in processing input.
-
createAssertionIDReference
Description copied from class:SAMLAssertionFactoryCreates and returns anAssertionIDReferenceobject. AssertionID will be generated automatically.- Specified by:
createAssertionIDReferencein classSAMLAssertionFactory- Returns:
- null if the system property "com.sun.xml.wss.saml.binding.jaxb" is not set otherwise returns AssertionIDReference.
-
createAssertionIDRef
Description copied from class:SAMLAssertionFactoryCreates and returns anAssertionIDRefobject. AssertionID will be generated automatically.- Specified by:
createAssertionIDRefin classSAMLAssertionFactory- Returns:
- null if the system property "com.sun.xml.wss.saml.binding.jaxb" is not set otherwise returns AssertionIDReference.
-
createAssertionIDReference
Description copied from class:SAMLAssertionFactoryCreates and returns anAssertionIDReferenceobject.- Specified by:
createAssertionIDReferencein classSAMLAssertionFactory- Parameters:
id-Stringof an AssertionID- Returns:
- null if the system property "com.sun.xml.wss.saml.binding.jaxb" is not set otherwise returns AssertionIDReference.
-
createAssertionIDRef
Description copied from class:SAMLAssertionFactoryCreates and returns anAssertionIDRefobject.- Specified by:
createAssertionIDRefin classSAMLAssertionFactory- Parameters:
id-Stringof an AssertionID- Returns:
- null if the system property "com.sun.xml.wss.saml.binding.jaxb" is not set otherwise returns AssertionIDReference.
-
createAttribute
Description copied from class:SAMLAssertionFactoryConstructs an instance ofAttribute.- Specified by:
createAttributein classSAMLAssertionFactory- Parameters:
name- A String representingAttributeName(the name of the attribute).nameSpace- A String representing the namespace in whichAttributeNameelements are interpreted.values- A List representing theAttributeValueobject.
-
createAttribute
Description copied from class:SAMLAssertionFactoryConstructs an instance ofAttribute.- Specified by:
createAttributein classSAMLAssertionFactory- Parameters:
name- A String representingAttributeName(the name of the attribute).values- A List representing theAttributeValueobject.
-
createAttributeDesignator
Description copied from class:SAMLAssertionFactoryConstructs an instance ofAttributeDesignator.- Specified by:
createAttributeDesignatorin classSAMLAssertionFactory- Parameters:
name- the name of the attribute.nameSpace- the namespace in whichAttributeNameelements are interpreted.
-
createAttributeStatement
Description copied from class:SAMLAssertionFactoryConstructs an instance ofAttributeStatement.- Specified by:
createAttributeStatementin classSAMLAssertionFactory- Parameters:
subj- SAML Subjectattr- List of attributes
-
createAttributeStatement
Description copied from class:SAMLAssertionFactoryConstructs an instance ofAttributeStatement.- Specified by:
createAttributeStatementin classSAMLAssertionFactory- Parameters:
attr- List of attributes
-
createAudienceRestrictionCondition
Description copied from class:SAMLAssertionFactoryConstructs an instance ofAudienceRestrictionCondition. It takes in aListof audience for this condition, each of them being a String.- Specified by:
createAudienceRestrictionConditionin classSAMLAssertionFactory- Parameters:
audience- A List of audience to be included within this condition
-
createAudienceRestriction
Description copied from class:SAMLAssertionFactoryConstructs an instance ofAudienceRestriction. It takes in aListof audience for this condition, each of them being a String.- Specified by:
createAudienceRestrictionin classSAMLAssertionFactory- Parameters:
audience- A List of audience to be included within this condition
-
createAuthenticationStatement
public AuthenticationStatement createAuthenticationStatement(String authMethod, GregorianCalendar authInstant, Subject subject, SubjectLocality subjectLocality, List authorityBinding) Description copied from class:SAMLAssertionFactoryConstructs an instance ofAuthenticationStatement.- Specified by:
createAuthenticationStatementin classSAMLAssertionFactory- Parameters:
authMethod- (optional) A String specifies the type of authentication that took place. Pass null if not required.authInstant- (optional) A GregorianCalendar object specifing the time at which the authentication that took place. Pass null if not required.subject- (required) A Subject objectsubjectLocality- (optional) ASubjectLocalityobject. Pass null if not required.authorityBinding- (optional) A List ofAuthorityBinding. Pass null if not required. objects.
-
createAuthnStatement
public AuthnStatement createAuthnStatement(GregorianCalendar authInstant, SubjectLocality subjectLocality, AuthnContext authnContext, String sessionIndex, GregorianCalendar sessionNotOnOrAfter) Description copied from class:SAMLAssertionFactoryConstructs an instance ofAuthenticationStatement.- Specified by:
createAuthnStatementin classSAMLAssertionFactory- Parameters:
authInstant- (optional) A GregorianCalendar object specifing the time at which the authentication that took place. Pass null if not required.subjectLocality- (optional) ASubjectLocalityobject. Pass null if not required.authnContext- (optional) AAuthnContextobject. Pass null if not required. objects.
-
createAuthorityBinding
Description copied from class:SAMLAssertionFactoryConstructs an instance ofAuthorityBinding.- Specified by:
createAuthorityBindingin classSAMLAssertionFactory- Parameters:
authKind- A QName representing the type of SAML protocol queries to which the authority described by this element will respond.location- A String representing a URI reference describing how to locate and communicate with the authority.binding- A String representing a URI reference identifying the SAML protocol binding to use in communicating with the authority.
-
createAuthnContext
- Specified by:
createAuthnContextin classSAMLAssertionFactory
-
createAuthnContext
- Specified by:
createAuthnContextin classSAMLAssertionFactory
-
createAuthorizationDecisionStatement
public AuthorizationDecisionStatement createAuthorizationDecisionStatement(Subject subject, String resource, String decision, List action, Evidence evidence) Description copied from class:SAMLAssertionFactoryConstructs an instance ofAuthorizationDecisionStatement.- Specified by:
createAuthorizationDecisionStatementin classSAMLAssertionFactory- Parameters:
subject- (required) A Subject objectresource- (required) A String identifying the resource to which access authorization is sought.decision- (required) The decision rendered by the issuer with respect to the specified resource.action- (required) A List of Action objects specifying the set of actions authorized to be performed on the specified resource.evidence- (optional) An Evidence object representing a set of assertions that the issuer replied on in making decisions.
-
createAuthnDecisionStatement
public AuthnDecisionStatement createAuthnDecisionStatement(String resource, String decision, List action, Evidence evidence) Description copied from class:SAMLAssertionFactoryConstructs an instance ofAuthnDecisionStatement.- Specified by:
createAuthnDecisionStatementin classSAMLAssertionFactory- Parameters:
resource- (required) A String identifying the resource to which access authorization is sought.decision- (required) The decision rendered by the issuer with respect to the specified resource.action- (required) A List of Action objects specifying the set of actions authorized to be performed on the specified resource.evidence- (optional) AnEvidenceobject representing a set of assertions that the issuer replied on in making decisions.
-
createConditions
Description copied from class:SAMLAssertionFactoryConstructs an instance of defaultConditionsobject.- Specified by:
createConditionsin classSAMLAssertionFactory
-
createConditions
public Conditions createConditions(GregorianCalendar notBefore, GregorianCalendar notOnOrAfter, List condition, List arc, List doNotCacheCnd) Description copied from class:SAMLAssertionFactoryConstructs an instance ofConditions.- Specified by:
createConditionsin classSAMLAssertionFactory- Parameters:
notBefore- specifies the earliest time instant at which the assertion is valid.notOnOrAfter- specifies the time instant at which the assertion has expired.arc- theAudienceRestrictionConditionto be added. Can be null, if no audience restriction.
-
createConditions
public Conditions createConditions(GregorianCalendar notBefore, GregorianCalendar notOnOrAfter, List condition, List ar, List oneTimeUse, List proxyRestriction) Description copied from class:SAMLAssertionFactoryConstructs an instance ofConditions.- Specified by:
createConditionsin classSAMLAssertionFactory- Parameters:
notBefore- specifies the earliest time instant at which the assertion is valid.notOnOrAfter- specifies the time instant at which the assertion has expired.ar- theAudienceRestrictionto be added. Can be null, if no audience restriction.
-
createDoNotCacheCondition
Description copied from class:SAMLAssertionFactoryConstructs an instance ofDoNotCacheCondition- Specified by:
createDoNotCacheConditionin classSAMLAssertionFactory
-
createOneTimeUse
- Specified by:
createOneTimeUsein classSAMLAssertionFactory
-
createEvidence
Description copied from class:SAMLAssertionFactoryConstructs an Evidence from a List ofAssertionandAssertionIDReferenceobjects.- Specified by:
createEvidencein classSAMLAssertionFactory- Parameters:
assertionIDRef- List ofAssertionIDReferenceobjects.assertion- List ofAssertionobjects.
-
createNameIdentifier
Description copied from class:SAMLAssertionFactoryConstructs aNameQualifierinstance.- Specified by:
createNameIdentifierin classSAMLAssertionFactory- Parameters:
name- The string representing the name of the SubjectnameQualifier- The security or administrative domain that qualifies the name of theSubject. This is optional could be null.format- The syntax used to describe the name of theSubject. This optional, could be null.
-
createNameID
Description copied from class:SAMLAssertionFactoryConstructs aNameIDinstance.- Specified by:
createNameIDin classSAMLAssertionFactory- Parameters:
name- The string representing the name of the SubjectnameQualifier- The security or administrative domain that qualifies the name of theSubject. This is optional could be null.format- The syntax used to describe the name of theSubject. This optional, could be null.
-
createSubject
public Subject createSubject(NameIdentifier nameIdentifier, SubjectConfirmation subjectConfirmation) Description copied from class:SAMLAssertionFactoryConstructs a Subject object from aNameIdentifierobject and aSubjectConfirmationobject.- Specified by:
createSubjectin classSAMLAssertionFactory- Parameters:
nameIdentifier-NameIdentifierobject.subjectConfirmation-SubjectConfirmationobject.
-
createSubject
Description copied from class:SAMLAssertionFactoryConstructs a Subject object from aNameIDobject and aSubjectConfirmationobject.- Specified by:
createSubjectin classSAMLAssertionFactory- Parameters:
nameID-NameIDobject.subjectConfirmation-SubjectConfirmationobject.
-
createSubjectConfirmation
Description copied from class:SAMLAssertionFactoryCreates and returns aSubjectConfirmationobject.- Specified by:
createSubjectConfirmationin classSAMLAssertionFactory- Parameters:
confirmationMethod- A URI (String) that identifies a protocol used to authenticate aSubject. Please refer todraft-sstc-core-25Section 7 for a list of URIs identifying common authentication protocols.
-
createSubjectConfirmation
Description copied from class:SAMLAssertionFactoryCreates and returns aSubjectConfirmationobject.- Specified by:
createSubjectConfirmationin classSAMLAssertionFactory- Parameters:
nameID-NameIDobject.method- A URI (String) that identifies a protocol used to authenticate aSubject. Please refer todraft-sstc-core-25Section 7 for a list of URIs identifying common authentication protocols.
-
createSubjectConfirmation
public SubjectConfirmation createSubjectConfirmation(List confirmationMethods, SubjectConfirmationData scd, KeyInfo keyInfo) throws SAMLException - Specified by:
createSubjectConfirmationin classSAMLAssertionFactory- Throws:
SAMLException
-
createSubjectConfirmation
public SubjectConfirmation createSubjectConfirmation(List confirmationMethods, Element subjectConfirmationData, Element keyInfo) Description copied from class:SAMLAssertionFactoryConstructs aSubjectConfirmationinstance.- Specified by:
createSubjectConfirmationin classSAMLAssertionFactory- Parameters:
confirmationMethods- A list ofconfirmationMethodseach of which is a URI (String) that identifies a protocol used to authenticate aSubject. Please refer todraft-sstc-core-25Section 7 for a list of URIs identifying common authentication protocols.subjectConfirmationData- Additional authentication information to be used by a specific authentication protocol. Can be passed as null if there is nosubjectConfirmationDatafor theSubjectConfirmationobject.keyInfo- An XML signature element that specifies a cryptographic key held by theSubject.
-
createSubjectConfirmation
public SubjectConfirmation createSubjectConfirmation(NameID nameID, SubjectConfirmationData subjectConfirmationData, String confirmationMethod) throws SAMLException Description copied from class:SAMLAssertionFactoryConstructs aSubjectConfirmationinstance.- Specified by:
createSubjectConfirmationin classSAMLAssertionFactory- Parameters:
nameID-NameIDobject.subjectConfirmationData- Additional authentication information to be used by a specific authentication protocol. Can be passed as null if there is nosubjectConfirmationDatafor theSubjectConfirmationobject.confirmationMethod- A list ofconfirmationMethodseach of which is a URI (String) that identifies a protocol used to authenticate aSubject. Please refer todraft-sstc-core-25Section 7 for a list of URIs identifying common authentication protocols.- Throws:
SAMLException
-
createSubjectConfirmation
public SubjectConfirmation createSubjectConfirmation(NameID nameID, KeyInfoConfirmationData keyInfoConfirmationData, String confirmationMethod) throws SAMLException Description copied from class:SAMLAssertionFactoryConstructs aSubjectConfirmationinstance.- Specified by:
createSubjectConfirmationin classSAMLAssertionFactory- Parameters:
nameID-NameIDobject.keyInfoConfirmationData- Additional authentication information to be used by a specific authentication protocol. Can be passed as null if there is noKeyInfoConfirmationDatafor theSubjectConfirmationobject.confirmationMethod- A list ofconfirmationMethodseach of which is a URI (String) that identifies a protocol used to authenticate aSubject. Please refer todraft-sstc-core-25Section 7 for a list of URIs identifying common authentication protocols.- Throws:
SAMLException
-
createSubjectConfirmationData
public SubjectConfirmationData createSubjectConfirmationData(String address, String inResponseTo, GregorianCalendar notBefore, GregorianCalendar notOnOrAfter, String recipient, Element keyInfo) throws SAMLException - Specified by:
createSubjectConfirmationDatain classSAMLAssertionFactory- Throws:
SAMLException
-
createSubjectConfirmationData
public SubjectConfirmationData createSubjectConfirmationData(String address, String inResponseTo, GregorianCalendar notBefore, GregorianCalendar notOnOrAfter, String recipient, KeyInfo keyInfo) - Specified by:
createSubjectConfirmationDatain classSAMLAssertionFactory
-
createKeyInfoConfirmationData
- Specified by:
createKeyInfoConfirmationDatain classSAMLAssertionFactory- Throws:
SAMLException
-
createSubjectLocality
Description copied from class:SAMLAssertionFactoryConstructs aSubjectLocalityinstance.- Specified by:
createSubjectLocalityin classSAMLAssertionFactory
-
createSubjectLocality
Description copied from class:SAMLAssertionFactoryConstructs an instance ofSubjectLocality.- Specified by:
createSubjectLocalityin classSAMLAssertionFactory- Parameters:
ipAddress- String representing the IP Address of the entity that was authenticated.dnsAddress- String representing the DNS Address of the entity that was authenticated. As per SAML specification they are both optional, so values can be null.
-
createAssertion
Description copied from class:SAMLAssertionFactoryCreates and returns anAssertionobject from the given SAMLXMLStreamReader.- Specified by:
createAssertionin classSAMLAssertionFactory- Parameters:
reader- AnXMLStreamReaderrepresenting the tree for anAssertionobject- Throws:
SAMLException- if it could not process the Element properly, implying that there is an error in the sender or in the element definition.
-