Package org.projecthusky.xua.saml2.impl
Class SubjectBuilderImpl
java.lang.Object
org.projecthusky.xua.saml2.impl.SubjectBuilderImpl
- All Implemented Interfaces:
SecurityObjectBuilder<org.opensaml.saml.saml2.core.Subject,
,org.openehealth.ipf.commons.ihe.xacml20.stub.saml20.assertion.SubjectType> SimpleBuilder<org.openehealth.ipf.commons.ihe.xacml20.stub.saml20.assertion.SubjectType>
,SubjectBuilder
public class SubjectBuilderImpl
extends Object
implements SubjectBuilder, SecurityObjectBuilder<org.opensaml.saml.saml2.core.Subject,org.openehealth.ipf.commons.ihe.xacml20.stub.saml20.assertion.SubjectType>
Class implementing the corresponding interface for Subject building.
Die Klasse implementiert das entsprechende Interface um Subject bilden zu können.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddSubjectConfirmations
(org.openehealth.ipf.commons.ihe.xacml20.stub.saml20.assertion.SubjectConfirmationType aSubjectConfirmation) Method to add a SubjectConfirmation to the Subject to be build. Methode um ein SubjectConfirmation dem zu buildenden Subject hinzuzufügen.org.openehealth.ipf.commons.ihe.xacml20.stub.saml20.assertion.SubjectType
create()
Creates a concrete instance of T with setted params. Erstellt die konkrete Instanz von T mit den gesetzten Parametern.org.opensaml.saml.saml2.core.Subject
create
(org.openehealth.ipf.commons.ihe.xacml20.stub.saml20.assertion.SubjectType aInternalObject) Method to create SubjectType.org.openehealth.ipf.commons.ihe.xacml20.stub.saml20.assertion.SubjectType
create
(org.opensaml.saml.saml2.core.Subject aInternalObject) Method to create an instance of type T. Methode um eine Instanc des Typs T zu erstellen.nameIDFormat
(String aNameIDFormat) Builds the NameID.Format on the Subject. Bildet das NameID.Format im Subject.nameIDNameQualifier
(String aNameIDNameQualifier) Builds the NameID.NameQualifier on the Subject. Bildet das NameID.NameQualifier im Subject.nameIDValue
(String aNameIDValue) Builds the NameID.Value on the Subject. Bildet das NameID.Value im Subject.subjectConfirmations
(List<org.openehealth.ipf.commons.ihe.xacml20.stub.saml20.assertion.SubjectConfirmationType> aSubjectConfirmations) Method to set a listSubjectConfirmation
s of the SubjectConfirmation to be build. Methode um eine liste vonSubjectConfirmation
dem SubjectConfirmation hinzuzufügen.
-
Constructor Details
-
SubjectBuilderImpl
public SubjectBuilderImpl()Default constructor.
-
-
Method Details
-
addSubjectConfirmations
public SubjectBuilder addSubjectConfirmations(org.openehealth.ipf.commons.ihe.xacml20.stub.saml20.assertion.SubjectConfirmationType aSubjectConfirmation) Description copied from interface:SubjectBuilder
Method to add a SubjectConfirmation to the Subject to be build.Methode um ein SubjectConfirmation dem zu buildenden Subject hinzuzufügen.- Specified by:
addSubjectConfirmations
in interfaceSubjectBuilder
- Parameters:
aSubjectConfirmation
-aList
ofSubjectConfirmation
to be seteineList
vonSubjectConfirmation
die gesetzt werden soll- Returns:
- the actual instance of this builderdie aktuelle Instanz des Builders
-
create
public org.openehealth.ipf.commons.ihe.xacml20.stub.saml20.assertion.SubjectType create()Description copied from interface:SimpleBuilder
Creates a concrete instance of T with setted params.Erstellt die konkrete Instanz von T mit den gesetzten Parametern.- Specified by:
create
in interfaceSimpleBuilder<org.openehealth.ipf.commons.ihe.xacml20.stub.saml20.assertion.SubjectType>
- Returns:
- a new instance of T with the params seteine neue Instanz von T mit den gesetzten Parametern
-
create
public org.openehealth.ipf.commons.ihe.xacml20.stub.saml20.assertion.SubjectType create(org.opensaml.saml.saml2.core.Subject aInternalObject) Description copied from interface:SecurityObjectBuilder
Method to create an instance of type T.Methode um eine Instanc des Typs T zu erstellen.- Specified by:
create
in interfaceSecurityObjectBuilder<org.opensaml.saml.saml2.core.Subject,
org.openehealth.ipf.commons.ihe.xacml20.stub.saml20.assertion.SubjectType> - Parameters:
aInternalObject
-the internal wrapped object of type Tdas Innere, gewrappte Object vom Typ T- Returns:
- the Object ot the type U
the instance of type Udie erstellte Instanz vom Typ U
-
create
public org.opensaml.saml.saml2.core.Subject create(org.openehealth.ipf.commons.ihe.xacml20.stub.saml20.assertion.SubjectType aInternalObject) Method to create SubjectType.- Parameters:
aInternalObject
- the SubjectType- Returns:
- the opensaml SubjectType
-
nameIDFormat
Description copied from interface:SubjectBuilder
Builds the NameID.Format on the Subject.Bildet das NameID.Format im Subject.- Specified by:
nameIDFormat
in interfaceSubjectBuilder
- Parameters:
aNameIDFormat
-the NameID.Format to be setdas NameID.Format welches gesetzt werden soll- Returns:
- the actual instance of this builderdie aktuelle Instanz des Builders
-
nameIDNameQualifier
Description copied from interface:SubjectBuilder
Builds the NameID.NameQualifier on the Subject.Bildet das NameID.NameQualifier im Subject.- Specified by:
nameIDNameQualifier
in interfaceSubjectBuilder
- Parameters:
aNameIDNameQualifier
-the NameID.NameQualifier to be setdas NameID.NameQualifier welches gesetzt werden soll- Returns:
- the actual instance of this builderdie aktuelle Instanz des Builders
-
nameIDValue
Builds the NameID.Value on the Subject.Bildet das NameID.Value im Subject.- Specified by:
nameIDValue
in interfaceSubjectBuilder
- Parameters:
aNameIDValue
-the NameID.Value to be setdas NameID.Value welches gesetzt werden soll- Returns:
- the actual instance of this builderdie aktuelle Instanz des Builders
- See Also:
-
subjectConfirmations
public SubjectBuilder subjectConfirmations(List<org.openehealth.ipf.commons.ihe.xacml20.stub.saml20.assertion.SubjectConfirmationType> aSubjectConfirmations) Description copied from interface:SubjectBuilder
Method to set a listSubjectConfirmation
s of the SubjectConfirmation to be build.Methode um eine liste vonSubjectConfirmation
dem SubjectConfirmation hinzuzufügen.- Specified by:
subjectConfirmations
in interfaceSubjectBuilder
- Parameters:
aSubjectConfirmations
-aList
ofSubjectConfirmation
to be seteineList
vonSubjectConfirmation
die gesetzt werden soll- Returns:
- the actual instance of this builderdie aktuelle Instanz des Builders
-