|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.xml.wss.saml.SAMLAssertionFactory
com.sun.xml.wss.saml.impl.SAMLAssertion2_2FactoryImpl
public class SAMLAssertion2_2FactoryImpl
| Field Summary |
|---|
| Fields inherited from class com.sun.xml.wss.saml.SAMLAssertionFactory |
|---|
SAML_VER_CHECK, SAML1_1, SAML2_0 |
| Constructor Summary | |
|---|---|
SAMLAssertion2_2FactoryImpl()
Creates a new instance of SAMLAssertion2_2FactoryImpl |
|
| Method Summary | |
|---|---|
Action |
createAction(Element actionElement)
|
Action |
createAction(String action,
String namespace)
Creates an Action element. |
Advice |
createAdvice(List assertionidreference,
List assertion,
List otherelement)
Creates an Advice element. |
AnyType |
createAnyType()
Creates an AnyType element if the System property "com.sun.xml.wss.saml.binding.jaxb"
is set. |
Assertion |
createAssertion(Element element)
Creates and returns an Assertion object from the given SAML org.w3c.dom.Element. |
Assertion |
createAssertion(String ID,
NameID issuer,
GregorianCalendar issueInstant,
Conditions conditions,
Advice advice,
Subject subject,
List statements)
Creates and return an Assertion from the data members: the ID, the issuer, time when assertion issued,
the conditions when creating a new assertion , Advice
applicable to this Assertion, Subjectand a set of
Statement(s) in the assertion. |
Assertion |
createAssertion(String ID,
NameID issuer,
GregorianCalendar issueInstant,
Conditions conditions,
Advice advice,
Subject subject,
List statements,
JAXBContext jcc)
Creates and return an Assertion from the data members: the ID, the issuer, time when assertion issued,
the conditions when creating a new assertion , Advice
applicable to this Assertion, Subject, a set of
Statement(s) ,and a jaxbcontext for the assertion. |
Assertion |
createAssertion(String assertionID,
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. |
Assertion |
createAssertion(String assertionID,
String issuer,
GregorianCalendar issueInstant,
Conditions conditions,
Advice advice,
List statements,
JAXBContext jcc)
|
Assertion |
createAssertion(XMLStreamReader reader)
Creates and returns an Assertion object from the given SAML XMLStreamReader. |
AssertionIDRef |
createAssertionIDRef()
Creates and returns an AssertionIDRef object. |
AssertionIDRef |
createAssertionIDRef(String id)
Creates and returns an AssertionIDRef object. |
AssertionIDReference |
createAssertionIDReference()
Creates and returns an AssertionIDReference object. |
AssertionIDReference |
createAssertionIDReference(String id)
Creates and returns an AssertionIDReference object. |
Attribute |
createAttribute(String name,
List values)
Constructs an instance of Attribute. |
Attribute |
createAttribute(String name,
String nameSpace,
List values)
Constructs an instance of Attribute. |
AttributeDesignator |
createAttributeDesignator(String name,
String nameSpace)
Constructs an instance of AttributeDesignator. |
AttributeStatement |
createAttributeStatement(List attr)
Constructs an instance of AttributeStatement. |
AttributeStatement |
createAttributeStatement(Subject subj,
List attr)
Constructs an instance of AttributeStatement. |
AudienceRestriction |
createAudienceRestriction(List audience)
Constructs an instance of AudienceRestriction. |
AudienceRestrictionCondition |
createAudienceRestrictionCondition(List audience)
Constructs an instance of AudienceRestrictionCondition. |
AuthenticationStatement |
createAuthenticationStatement(String authMethod,
GregorianCalendar authInstant,
Subject subject,
SubjectLocality subjectLocality,
List authorityBinding)
Constructs an instance of AuthenticationStatement. |
AuthnContext |
createAuthnContext()
|
AuthnContext |
createAuthnContext(String authContextClassref,
String authenticatingAuthority)
|
AuthnDecisionStatement |
createAuthnDecisionStatement(String resource,
String decision,
List action,
Evidence evidence)
Constructs an instance of AuthnDecisionStatement. |
AuthnStatement |
createAuthnStatement(GregorianCalendar authInstant,
SubjectLocality subjectLocality,
AuthnContext authnContext,
String sessionIndex,
GregorianCalendar sessionNotOnOrAfter)
Constructs an instance of AuthenticationStatement. |
AuthorityBinding |
createAuthorityBinding(QName authKind,
String location,
String binding)
Constructs an instance of AuthorityBinding. |
AuthorizationDecisionStatement |
createAuthorizationDecisionStatement(Subject subject,
String resource,
String decision,
List action,
Evidence evidence)
Constructs an instance of AuthorizationDecisionStatement. |
Conditions |
createConditions()
Constructs an instance of default Conditions object. |
Conditions |
createConditions(GregorianCalendar notBefore,
GregorianCalendar notOnOrAfter,
List condition,
List arc,
List doNotCacheCnd)
Constructs an instance of Conditions. |
Conditions |
createConditions(GregorianCalendar notBefore,
GregorianCalendar notOnOrAfter,
List condition,
List ar,
List oneTimeUse,
List proxyRestriction)
Constructs an instance of Conditions. |
DoNotCacheCondition |
createDoNotCacheCondition()
Constructs an instance of DoNotCacheCondition |
Evidence |
createEvidence(List assertionIDRef,
List assertion)
Constructs an Evidence from a List of Assertion and
AssertionIDReference objects. |
KeyInfoConfirmationData |
createKeyInfoConfirmationData(Element keyInfo)
|
NameID |
createNameID(String name,
String nameQualifier,
String format)
Constructs a NameID instance. |
NameIdentifier |
createNameIdentifier(String name,
String nameQualifier,
String format)
Constructs a NameQualifier instance. |
OneTimeUse |
createOneTimeUse()
|
Subject |
createSubject(NameIdentifier nameIdentifier,
SubjectConfirmation subjectConfirmation)
Constructs a Subject object from a NameIdentifier
object and a SubjectConfirmation object. |
Subject |
createSubject(NameID nameID,
SubjectConfirmation subjectConfirmation)
Constructs a Subject object from a NameID
object and a SubjectConfirmation object. |
SubjectConfirmation |
createSubjectConfirmation(List confirmationMethods,
Element subjectConfirmationData,
Element keyInfo)
Constructs a SubjectConfirmation instance. |
SubjectConfirmation |
createSubjectConfirmation(List confirmationMethods,
SubjectConfirmationData scd,
KeyInfo keyInfo)
|
SubjectConfirmation |
createSubjectConfirmation(NameID nameID,
KeyInfoConfirmationData keyInfoConfirmationData,
String confirmationMethod)
Constructs a SubjectConfirmation instance. |
SubjectConfirmation |
createSubjectConfirmation(NameID nameID,
String method)
Creates and returns a SubjectConfirmation object. |
SubjectConfirmation |
createSubjectConfirmation(NameID nameID,
SubjectConfirmationData subjectConfirmationData,
String confirmationMethod)
Constructs a SubjectConfirmation instance. |
SubjectConfirmation |
createSubjectConfirmation(String confirmationMethod)
Creates and returns a SubjectConfirmation object. |
SubjectConfirmationData |
createSubjectConfirmationData(String address,
String inResponseTo,
GregorianCalendar notBefore,
GregorianCalendar notOnOrAfter,
String recipient,
Element keyInfo)
|
SubjectConfirmationData |
createSubjectConfirmationData(String address,
String inResponseTo,
GregorianCalendar notBefore,
GregorianCalendar notOnOrAfter,
String recipient,
KeyInfo keyInfo)
|
SubjectLocality |
createSubjectLocality()
Constructs a SubjectLocality instance. |
SubjectLocality |
createSubjectLocality(String ipAddress,
String dnsAddress)
Constructs an instance of SubjectLocality. |
| Methods inherited from class com.sun.xml.wss.saml.SAMLAssertionFactory |
|---|
newInstance |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SAMLAssertion2_2FactoryImpl()
| Method Detail |
|---|
public Action createAction(Element actionElement)
public Action createAction(String action,
String namespace)
SAMLAssertionFactoryAction element.
createAction in class SAMLAssertionFactoryaction - A String representing an actionnamespace - The attribute "namespace" of
Action element
public Advice createAdvice(List assertionidreference,
List assertion,
List otherelement)
SAMLAssertionFactoryAdvice element.
createAdvice in class SAMLAssertionFactoryassertionidreference - A List of AssertionIDReference.assertion - A List of Assertionotherelement - A List of any element defined aspublic AnyType createAnyType()
SAMLAssertionFactoryAnyType element if the System property "com.sun.xml.wss.saml.binding.jaxb"
is set. Otherwise returns null.
createAnyType in class SAMLAssertionFactory
public Assertion createAssertion(Element element)
throws SAMLException
SAMLAssertionFactoryAssertion object from the given SAML org.w3c.dom.Element.
createAssertion in class SAMLAssertionFactoryelement - A org.w3c.dom.Element representing
DOM tree for Assertion object
SAMLException - if it could not process the Element properly,
implying that there is an error in the sender or in the
element definition.
public Assertion createAssertion(String assertionID,
String issuer,
GregorianCalendar issueInstant,
Conditions conditions,
Advice advice,
List statements)
throws SAMLException
SAMLAssertionFactoryassertionID, 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.
createAssertion in class SAMLAssertionFactoryassertionID - AssertionID object contained within this
Assertion if null its generated internally.issuer - The issuer of this assertion.issueInstant - Time instant of the issue. It has type
dateTime which is built in to the W3C XML Schema
Types specification. if null, current time is used.conditions - Conditions under which the this
Assertion is valid.advice - Advice applicable for this
Assertion.statements - List of Statement objects within this
Assertion. It could be of type
AuthenticationStatement,
AuthorizationDecisionStatement and
AttributeStatement. Each Assertion can have
multiple type of statements in it.
SAMLException - if there is an error in processing input.
public Assertion createAssertion(String assertionID,
String issuer,
GregorianCalendar issueInstant,
Conditions conditions,
Advice advice,
List statements,
JAXBContext jcc)
throws SAMLException
createAssertion in class SAMLAssertionFactorySAMLException
public Assertion createAssertion(String ID,
NameID issuer,
GregorianCalendar issueInstant,
Conditions conditions,
Advice advice,
Subject subject,
List statements)
throws SAMLException
SAMLAssertionFactoryID, the issuer, time when assertion issued,
the conditions when creating a new assertion , Advice
applicable to this Assertion, Subjectand a set of
Statement(s) in the assertion.
createAssertion in class SAMLAssertionFactoryID - ID object contained within this
Assertion if null its generated internally.issuer - The issuer of this assertion.issueInstant - Time instant of the issue. It has type
dateTime which is built in to the W3C XML Schema
Types specification. if null, current time is used.conditions - Conditions under which the this
Assertion is valid.advice - Advice applicable for this
Assertion.subject - Subject applicable for this Assertionstatements - List of Statement objects within this
Assertion. It could be of type
AuthnStatement,
AuthzDecisionStatement and
AttributeStatement. Each Assertion can have
multiple type of statements in it.
SAMLException - if there is an error in processing input.
public Assertion createAssertion(String ID,
NameID issuer,
GregorianCalendar issueInstant,
Conditions conditions,
Advice advice,
Subject subject,
List statements,
JAXBContext jcc)
throws SAMLException
SAMLAssertionFactoryID, the issuer, time when assertion issued,
the conditions when creating a new assertion , Advice
applicable to this Assertion, Subject, a set of
Statement(s) ,and a jaxbcontext for the assertion.
createAssertion in class SAMLAssertionFactoryID - ID object contained within this
Assertion if null its generated internally.issuer - The issuer of this assertion.issueInstant - Time instant of the issue. It has type
dateTime which is built in to the W3C XML Schema
Types specification. if null, current time is used.conditions - Conditions under which the this
Assertion is valid.advice - Advice applicable for this
Assertion.subject - Subject applicable for this Assertionstatements - List of Statement objects within this
Assertion. It could be of type
AuthnStatement,
AuthzDecisionStatement and
AttributeStatement. Each Assertion can have
multiple type of statements in it.jcc - JAXBContext to be used for marshaling and unmarshalling the assertions.
SAMLException - if there is an error in processing input.
public AssertionIDReference createAssertionIDReference()
throws SAMLException
SAMLAssertionFactoryAssertionIDReference object. AssertionID
will be generated automatically.
createAssertionIDReference in class SAMLAssertionFactorySAMLException
public AssertionIDRef createAssertionIDRef()
throws SAMLException
SAMLAssertionFactoryAssertionIDRef object. AssertionID
will be generated automatically.
createAssertionIDRef in class SAMLAssertionFactorySAMLException
public AssertionIDReference createAssertionIDReference(String id)
throws SAMLException
SAMLAssertionFactoryAssertionIDReference object.
createAssertionIDReference in class SAMLAssertionFactoryid - String of an AssertionID
SAMLException
public AssertionIDRef createAssertionIDRef(String id)
throws SAMLException
SAMLAssertionFactoryAssertionIDRef object.
createAssertionIDRef in class SAMLAssertionFactoryid - String of an AssertionID
SAMLException
public Attribute createAttribute(String name,
String nameSpace,
List values)
throws SAMLException
SAMLAssertionFactoryAttribute.
createAttribute in class SAMLAssertionFactoryname - A String representing AttributeName (the name
of the attribute).nameSpace - A String representing the namespace in which
AttributeName elements are interpreted.values - A List representing the AttributeValue object.
SAMLException
public Attribute createAttribute(String name,
List values)
throws SAMLException
SAMLAssertionFactoryAttribute.
createAttribute in class SAMLAssertionFactoryname - A String representing AttributeName (the name
of the attribute).values - A List representing the AttributeValue object.
SAMLException
public AttributeDesignator createAttributeDesignator(String name,
String nameSpace)
throws SAMLException
SAMLAssertionFactoryAttributeDesignator.
createAttributeDesignator in class SAMLAssertionFactoryname - the name of the attribute.nameSpace - the namespace in which AttributeName
elements are interpreted.
SAMLException
public AttributeStatement createAttributeStatement(Subject subj,
List attr)
throws SAMLException
SAMLAssertionFactoryAttributeStatement.
createAttributeStatement in class SAMLAssertionFactorysubj - SAML Subjectattr - List of attributes
SAMLException
public AttributeStatement createAttributeStatement(List attr)
throws SAMLException
SAMLAssertionFactoryAttributeStatement.
createAttributeStatement in class SAMLAssertionFactoryattr - List of attributes
SAMLException
public AudienceRestrictionCondition createAudienceRestrictionCondition(List audience)
throws SAMLException
SAMLAssertionFactoryAudienceRestrictionCondition.
It takes in a List of audience for this
condition, each of them being a String.
createAudienceRestrictionCondition in class SAMLAssertionFactoryaudience - A List of audience to be included within this condition
SAMLException
public AudienceRestriction createAudienceRestriction(List audience)
throws SAMLException
SAMLAssertionFactoryAudienceRestriction.
It takes in a List of audience for this
condition, each of them being a String.
createAudienceRestriction in class SAMLAssertionFactoryaudience - A List of audience to be included within this condition
SAMLException
public AuthenticationStatement createAuthenticationStatement(String authMethod,
GregorianCalendar authInstant,
Subject subject,
SubjectLocality subjectLocality,
List authorityBinding)
throws SAMLException
SAMLAssertionFactoryAuthenticationStatement.
createAuthenticationStatement in class SAMLAssertionFactoryauthMethod - (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) A SubjectLocality object. Pass null if not required.authorityBinding - (optional) A List of AuthorityBinding. Pass null if not required.
objects.
SAMLException
public AuthnStatement createAuthnStatement(GregorianCalendar authInstant,
SubjectLocality subjectLocality,
AuthnContext authnContext,
String sessionIndex,
GregorianCalendar sessionNotOnOrAfter)
throws SAMLException
SAMLAssertionFactoryAuthenticationStatement.
createAuthnStatement in class SAMLAssertionFactoryauthInstant - (optional) A GregorianCalendar object specifing the time at which the
authentication that took place. Pass null if not required.subjectLocality - (optional) A SubjectLocality object. Pass null if not required.authnContext - (optional) A AuthnContext object. Pass null if not required.
objects.
SAMLException
public AuthorityBinding createAuthorityBinding(QName authKind,
String location,
String binding)
throws SAMLException
SAMLAssertionFactoryAuthorityBinding.
createAuthorityBinding in class SAMLAssertionFactoryauthKind - 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.
SAMLException
public AuthnContext createAuthnContext()
throws SAMLException
createAuthnContext in class SAMLAssertionFactorySAMLException
public AuthnContext createAuthnContext(String authContextClassref,
String authenticatingAuthority)
throws SAMLException
createAuthnContext in class SAMLAssertionFactorySAMLException
public AuthorizationDecisionStatement createAuthorizationDecisionStatement(Subject subject,
String resource,
String decision,
List action,
Evidence evidence)
throws SAMLException
SAMLAssertionFactoryAuthorizationDecisionStatement.
createAuthorizationDecisionStatement in class SAMLAssertionFactorysubject - (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.
SAMLException
public AuthnDecisionStatement createAuthnDecisionStatement(String resource,
String decision,
List action,
Evidence evidence)
throws SAMLException
SAMLAssertionFactoryAuthnDecisionStatement.
createAuthnDecisionStatement in class SAMLAssertionFactoryresource - (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.
SAMLException
public Conditions createConditions()
throws SAMLException
SAMLAssertionFactoryConditions object.
createConditions in class SAMLAssertionFactorySAMLException
public Conditions createConditions(GregorianCalendar notBefore,
GregorianCalendar notOnOrAfter,
List condition,
List arc,
List doNotCacheCnd)
throws SAMLException
SAMLAssertionFactoryConditions.
createConditions in class SAMLAssertionFactorynotBefore - specifies the earliest time instant at which the
assertion is valid.notOnOrAfter - specifies the time instant at which the assertion
has expired.arc - the AudienceRestrictionCondition to be
added. Can be null, if no audience restriction.
SAMLException
public Conditions createConditions(GregorianCalendar notBefore,
GregorianCalendar notOnOrAfter,
List condition,
List ar,
List oneTimeUse,
List proxyRestriction)
throws SAMLException
SAMLAssertionFactoryConditions.
createConditions in class SAMLAssertionFactorynotBefore - specifies the earliest time instant at which the
assertion is valid.notOnOrAfter - specifies the time instant at which the assertion
has expired.ar - the AudienceRestriction to be
added. Can be null, if no audience restriction.
SAMLException
public DoNotCacheCondition createDoNotCacheCondition()
throws SAMLException
SAMLAssertionFactoryDoNotCacheCondition
createDoNotCacheCondition in class SAMLAssertionFactorySAMLException
public OneTimeUse createOneTimeUse()
throws SAMLException
createOneTimeUse in class SAMLAssertionFactorySAMLException
public Evidence createEvidence(List assertionIDRef,
List assertion)
throws SAMLException
SAMLAssertionFactoryAssertion and
AssertionIDReference objects.
createEvidence in class SAMLAssertionFactoryassertionIDRef - List of AssertionIDReference objects.assertion - List of Assertion objects.
SAMLException
public NameIdentifier createNameIdentifier(String name,
String nameQualifier,
String format)
throws SAMLException
SAMLAssertionFactoryNameQualifier instance.
createNameIdentifier in class SAMLAssertionFactoryname - The string representing the name of the SubjectnameQualifier - The security or administrative domain that qualifies
the name of the Subject. This is optional could be
null.format - The syntax used to describe the name of the
Subject. This optional, could be null.
SAMLException
public NameID createNameID(String name,
String nameQualifier,
String format)
throws SAMLException
SAMLAssertionFactoryNameID instance.
createNameID in class SAMLAssertionFactoryname - The string representing the name of the SubjectnameQualifier - The security or administrative domain that qualifies
the name of the Subject. This is optional could be
null.format - The syntax used to describe the name of the
Subject. This optional, could be null.
SAMLException
public Subject createSubject(NameIdentifier nameIdentifier,
SubjectConfirmation subjectConfirmation)
throws SAMLException
SAMLAssertionFactoryNameIdentifier
object and a SubjectConfirmation object.
createSubject in class SAMLAssertionFactorynameIdentifier - NameIdentifier object.subjectConfirmation - SubjectConfirmation object.
SAMLException
public Subject createSubject(NameID nameID,
SubjectConfirmation subjectConfirmation)
throws SAMLException
SAMLAssertionFactoryNameID
object and a SubjectConfirmation object.
createSubject in class SAMLAssertionFactorynameID - NameID object.subjectConfirmation - SubjectConfirmation object.
SAMLException
public SubjectConfirmation createSubjectConfirmation(String confirmationMethod)
throws SAMLException
SAMLAssertionFactorySubjectConfirmation object.
createSubjectConfirmation in class SAMLAssertionFactoryconfirmationMethod - A URI (String) that identifies a protocol used
to authenticate a Subject. Please refer to
draft-sstc-core-25 Section 7 for a list of URIs
identifying common authentication protocols.
SAMLException
public SubjectConfirmation createSubjectConfirmation(NameID nameID,
String method)
throws SAMLException
SAMLAssertionFactorySubjectConfirmation object.
createSubjectConfirmation in class SAMLAssertionFactorynameID - NameID object.method - A URI (String) that identifies a protocol used
to authenticate a Subject. Please refer to
draft-sstc-core-25 Section 7 for a list of URIs
identifying common authentication protocols.
SAMLException
public SubjectConfirmation createSubjectConfirmation(List confirmationMethods,
SubjectConfirmationData scd,
KeyInfo keyInfo)
throws SAMLException
createSubjectConfirmation in class SAMLAssertionFactorySAMLException
public SubjectConfirmation createSubjectConfirmation(List confirmationMethods,
Element subjectConfirmationData,
Element keyInfo)
throws SAMLException
SAMLAssertionFactorySubjectConfirmation instance.
createSubjectConfirmation in class SAMLAssertionFactoryconfirmationMethods - A list of confirmationMethods
each of which is a URI (String) that identifies a protocol
used to authenticate a Subject. Please refer to
draft-sstc-core-25 Section 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 no subjectConfirmationData for the
SubjectConfirmation object.keyInfo - An XML signature element that specifies a cryptographic
key held by the Subject.
SAMLException
public SubjectConfirmation createSubjectConfirmation(NameID nameID,
SubjectConfirmationData subjectConfirmationData,
String confirmationMethod)
throws SAMLException
SAMLAssertionFactorySubjectConfirmation instance.
createSubjectConfirmation in class SAMLAssertionFactorynameID - NameID object.subjectConfirmationData - Additional authentication information to
be used by a specific authentication protocol. Can be passed as
null if there is no subjectConfirmationData for the
SubjectConfirmation object.confirmationMethod - A list of confirmationMethods
each of which is a URI (String) that identifies a protocol
used to authenticate a Subject. Please refer to
draft-sstc-core-25 Section 7 for
a list of URIs identifying common authentication protocols.
SAMLException
public SubjectConfirmation createSubjectConfirmation(NameID nameID,
KeyInfoConfirmationData keyInfoConfirmationData,
String confirmationMethod)
throws SAMLException
SAMLAssertionFactorySubjectConfirmation instance.
createSubjectConfirmation in class SAMLAssertionFactorynameID - NameID object.keyInfoConfirmationData - Additional authentication information to
be used by a specific authentication protocol. Can be passed as
null if there is no KeyInfoConfirmationData for the
SubjectConfirmation object.confirmationMethod - A list of confirmationMethods
each of which is a URI (String) that identifies a protocol
used to authenticate a Subject. Please refer to
draft-sstc-core-25 Section 7 for
a list of URIs identifying common authentication protocols.
SAMLException
public SubjectConfirmationData createSubjectConfirmationData(String address,
String inResponseTo,
GregorianCalendar notBefore,
GregorianCalendar notOnOrAfter,
String recipient,
Element keyInfo)
throws SAMLException
createSubjectConfirmationData in class SAMLAssertionFactorySAMLException
public SubjectConfirmationData createSubjectConfirmationData(String address,
String inResponseTo,
GregorianCalendar notBefore,
GregorianCalendar notOnOrAfter,
String recipient,
KeyInfo keyInfo)
throws SAMLException
createSubjectConfirmationData in class SAMLAssertionFactorySAMLException
public KeyInfoConfirmationData createKeyInfoConfirmationData(Element keyInfo)
throws SAMLException
createKeyInfoConfirmationData in class SAMLAssertionFactorySAMLException
public SubjectLocality createSubjectLocality()
throws SAMLException
SAMLAssertionFactorySubjectLocality instance.
createSubjectLocality in class SAMLAssertionFactorySAMLException
public SubjectLocality createSubjectLocality(String ipAddress,
String dnsAddress)
throws SAMLException
SAMLAssertionFactorySubjectLocality.
createSubjectLocality in class SAMLAssertionFactoryipAddress - 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.
SAMLException
public Assertion createAssertion(XMLStreamReader reader)
throws SAMLException
SAMLAssertionFactoryAssertion object from the given SAML XMLStreamReader.
createAssertion in class SAMLAssertionFactoryreader - An XMLStreamReader representing
the tree for an Assertion object
SAMLException - if it could not process the Element properly,
implying that there is an error in the sender or in the
element definition.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||