Package org.projecthusky.xua.saml2.impl
Class AttributeBuilderImpl
java.lang.Object
org.projecthusky.xua.saml2.impl.AttributeBuilderImpl
- All Implemented Interfaces:
SecurityObjectBuilder<org.opensaml.saml.saml2.core.Attribute,
,org.openehealth.ipf.commons.ihe.xacml20.stub.saml20.assertion.AttributeType> AttributeBuilder
,SimpleBuilder<org.openehealth.ipf.commons.ihe.xacml20.stub.saml20.assertion.AttributeType>
public class AttributeBuilderImpl
extends Object
implements AttributeBuilder, SecurityObjectBuilder<org.opensaml.saml.saml2.core.Attribute,org.openehealth.ipf.commons.ihe.xacml20.stub.saml20.assertion.AttributeType>
Class implementing the corresponding interface for Attribute building.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.openehealth.ipf.commons.ihe.xacml20.stub.saml20.assertion.AttributeType
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.Attribute
create
(org.openehealth.ipf.commons.ihe.xacml20.stub.saml20.assertion.AttributeType aInternalObject) Method to create attribute instanceorg.openehealth.ipf.commons.ihe.xacml20.stub.saml20.assertion.AttributeType
create
(org.opensaml.saml.saml2.core.Attribute aInternalObject) Method to create an instance of type T. Methode um eine Instanc des Typs T zu erstellen.friendlyName
(String aFriendlyName) Method to set the FriendlyName of the Attribute to be build. Methode um ein FriendlyName dem Attribute hinzuzufügen.Method to get the InstanceIdentifier.Method to get theMethod to get theMethod to get theMethod to set the name of the Attribute to be build. Methode um ein name dem Attribute hinzuzufügen.nameFormat
(String aNameFormat) Method to set the NameFormat of the Attribute to be build. Methode um ein NameFormat dem Attribute hinzuzufügen.Method to set the value of the Attribute to be build. Methode um ein value dem Attribute hinzuzufügen.
-
Constructor Details
-
AttributeBuilderImpl
public AttributeBuilderImpl()Default constructor to instanciate the object.
-
-
Method Details
-
create
public org.openehealth.ipf.commons.ihe.xacml20.stub.saml20.assertion.AttributeType create()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.AttributeType>
- Returns:
- a new instance of T with the params seteine neue Instanz von T mit den gesetzten Parametern
- See Also:
-
create
public org.openehealth.ipf.commons.ihe.xacml20.stub.saml20.assertion.AttributeType create(org.opensaml.saml.saml2.core.Attribute aInternalObject) 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.Attribute,
org.openehealth.ipf.commons.ihe.xacml20.stub.saml20.assertion.AttributeType> - 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
- See Also:
-
create
public org.opensaml.saml.saml2.core.Attribute create(org.openehealth.ipf.commons.ihe.xacml20.stub.saml20.assertion.AttributeType aInternalObject) Method to create attribute instance- Parameters:
aInternalObject
- the wrapped opensaml object- Returns:
- the created instance
-
friendlyName
Method to set the FriendlyName of the Attribute to be build.Methode um ein FriendlyName dem Attribute hinzuzufügen.- Specified by:
friendlyName
in interfaceAttributeBuilder
- Parameters:
aFriendlyName
-the FriendlyName to be added.das FriendlyName welches hinzugefügt werden soll.- Returns:
- the actual instance of this builderdie aktuelle Instanz des Builders
- See Also:
-
name
Method to set the name of the Attribute to be build.Methode um ein name dem Attribute hinzuzufügen.- Specified by:
name
in interfaceAttributeBuilder
- Parameters:
aName
-the name to be added.der Name welcher hinzugefügt werden soll.- Returns:
- the actual instance of this builderdie aktuelle Instanz des Builders
- See Also:
-
nameFormat
Method to set the NameFormat of the Attribute to be build.Methode um ein NameFormat dem Attribute hinzuzufügen.- Specified by:
nameFormat
in interfaceAttributeBuilder
- Parameters:
aNameFormat
-the NameFormat to be added.das NameFormat welches hinzugefügt werden soll.- Returns:
- the actual instance of this builderdie aktuelle Instanz des Builders
- See Also:
-
value
- Specified by:
value
in interfaceAttributeBuilder
-
value
Method to set the value of the Attribute to be build.Methode um ein value dem Attribute hinzuzufügen.- Specified by:
value
in interfaceAttributeBuilder
- Parameters:
aValue
-the value to be added.der Wert welcher hinzugefügt werden soll.- Returns:
- the actual instance of this builderdie aktuelle Instanz des Builders
- See Also:
-
getValueAsInstanceIdentifier
Method to get the InstanceIdentifier.- Specified by:
getValueAsInstanceIdentifier
in interfaceAttributeBuilder
- Returns:
- the InstanceIdentifier
-
getValueAsPurposeOfUse
Method to get the- Specified by:
getValueAsPurposeOfUse
in interfaceAttributeBuilder
- Returns:
- PurposeOfUse value
-
getValueAsRole
Method to get the- Specified by:
getValueAsRole
in interfaceAttributeBuilder
- Returns:
- Role value
-
getValueAsString
Method to get the- Specified by:
getValueAsString
in interfaceAttributeBuilder
- Returns:
- the string value
-