Class XUserAssertionRequestBuilderImpl
java.lang.Object
org.projecthusky.xua.communication.xua.impl.XUserAssertionRequestBuilderImpl
- All Implemented Interfaces:
XUserAssertionRequestBuilder
,SecurityObjectBuilder<org.opensaml.soap.wstrust.RequestSecurityToken,
XUserAssertionRequest>
- Direct Known Subclasses:
XUserAssertionRequestBuilderChImpl
public class XUserAssertionRequestBuilderImpl
extends Object
implements XUserAssertionRequestBuilder, SecurityObjectBuilder<org.opensaml.soap.wstrust.RequestSecurityToken,XUserAssertionRequest>
Class implementing the corresponding interface for XUserAssertionRequest building.
Die Klasse implementiert das entsprechende Interface um XUserAssertionRequests bilden zu können.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
addXMLObject
(org.opensaml.core.xml.XMLObject aXmlObject) Method to add xmlobject to requestSecurityToken.protected void
addXMLObjectToClaims
(org.opensaml.core.xml.XMLObject aXmlObject) Method to add xmlobject to claims.Method to set the AppliesTo attribute. Setzt das AppliesTo Attribut.Method to set the context. Setzt den Kontext.create()
Creates a concrete instance of XUserAssertionRequest with setted params. Erstellt die konkrete Instanz des XUserAssertionRequest mit den gesetzten Parametern.create
(org.opensaml.soap.wstrust.RequestSecurityToken aInternalObject) Method to create an instance of type T. Methode um eine Instanc des Typs T zu erstellen.protected org.opensaml.core.xml.XMLObject
createObjectAttribute
(String aName, org.opensaml.core.xml.XMLObject hl7PurposeOfUse) protected org.opensaml.saml.saml2.core.Attribute
createStringAttribute
(String aName, String aValue) Method to set the dialect of the claims. Setzt den Dialekt des Claims.protected org.opensaml.soap.wstrust.Claims
Method getorganizationId
(String organizationId) Method to set the id of the organisation of the accessing person (GLN of an organisation or a group from the HOI). Setzt die Organisations-ID des Zugreifers (GLN einer Organisation oder einer Gruppe aus dem HOI).organizationName
(String organizationName) Method to set the name of the organisation of the accessing person (plain text of the organisation). Setzt den Organisationsnamen des Zugreifers (Klartext des Organisationsnamens).purposeOfUse
(CE purposeOfUse) Method to set the reason of access in the actual application context (for the EPR in Switzerland: Code from the Swiss value set: normal access, emergency access). Setzt den Grund für den Zugriff im aktuellen Applikationskontext (für das EPD in der Schweiz: Code aus dem schweizerischen Value-Set: Normalzugriff, Notfallzugriff).requestType
(RequestType requestType) Method to set the request type attribute. Setzt den Request Types Attribut.resourceId
(String resourceId) Method to set the resource id of the actual application context of the transaction (for the EPR in Switzerland: EPR-SPID of the desired patient record). Setzt die Ressourcen-ID im aktuellen Applikationskontext auf welche sich die Transaktion bezieht (für das EPD in der Schweiz: EPR-SPID des gewünschten Patienten-Dossiers).Method to set the ID of the accessor (GLN or EPR-SPID). Setzt die Zugreifer ID (GLN oder EPR-SPID).subjectName
(String subjectName) Method to set the name of the accessor (plain text of the user name) Setzt den Namen des Zugreifes (Klartext des Benutzernamens).subjectRole
(CE aRole) Method to set role id of the accessor in the actual application context (for the EPR in Switzerland: Code from the Swiss Value Set for the role: patient, health professional, assistant, deputy). Setzt die ID der Rolle des Zugreifers im aktuellen Applikationskontext (für das EPD in der Schweiz: Code aus dem schweizerischen Value-Set für die Rolle: Patient(in), Behandelnde(r), Hilfsperson, Stellvertreter(in)).Method to set the toke type attribute. Setzt den Token Types Attribut.
-
Constructor Details
-
XUserAssertionRequestBuilderImpl
public XUserAssertionRequestBuilderImpl()Defualt constructor.
-
-
Method Details
-
addXMLObject
protected void addXMLObject(org.opensaml.core.xml.XMLObject aXmlObject) Method to add xmlobject to requestSecurityToken.- Parameters:
aXmlObject
- the xml object on requestSecurityToken
-
addXMLObjectToClaims
protected void addXMLObjectToClaims(org.opensaml.core.xml.XMLObject aXmlObject) Method to add xmlobject to claims.- Parameters:
aXmlObject
- the xml object on claims
-
appliesTo
Method to set the AppliesTo attribute.Setzt das AppliesTo Attribut.- Specified by:
appliesTo
in interfaceXUserAssertionRequestBuilder
- Parameters:
appliesTo
-the value to be setder Wert der gesetzt werden sollder rolle der- Returns:
- the actual instance of this builderdie aktuelle Instanz des Builders
- See Also:
-
context
Method to set the context.Setzt den Kontext.- Specified by:
context
in interfaceXUserAssertionRequestBuilder
- Parameters:
aContext
-the context to be setder Kontext der gesetzt werden soll- Returns:
- the actual instance of this builderdie aktuelle Instanz des Builders
- See Also:
-
create
Creates a concrete instance of XUserAssertionRequest with setted params.Erstellt die konkrete Instanz des XUserAssertionRequest mit den gesetzten Parametern.- Specified by:
create
in interfaceXUserAssertionRequestBuilder
- Returns:
- a new XUserAssertionRequest instance with the params seteine neue XUserAssertionRequest Instanz mit den gesetzten Parametern
- See Also:
-
create
Method to create an instance of type T.Methode um eine Instanc des Typs T zu erstellen.- Specified by:
create
in interfaceSecurityObjectBuilder<org.opensaml.soap.wstrust.RequestSecurityToken,
XUserAssertionRequest> - 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:
-
createObjectAttribute
protected org.opensaml.core.xml.XMLObject createObjectAttribute(String aName, org.opensaml.core.xml.XMLObject hl7PurposeOfUse) -
createStringAttribute
-
dialect
Method to set the dialect of the claims.Setzt den Dialekt des Claims.- Specified by:
dialect
in interfaceXUserAssertionRequestBuilder
- Parameters:
aDialect
-the dialect to be setden Dialekt der gesetzt werden soll- Returns:
- the actual instance of this builderdie aktuelle Instanz des Builders
- See Also:
-
getClaims
protected org.opensaml.soap.wstrust.Claims getClaims()Method get- Returns:
- the claims
-
organizationId
Method to set the id of the organisation of the accessing person (GLN of an organisation or a group from the HOI).Setzt die Organisations-ID des Zugreifers (GLN einer Organisation oder einer Gruppe aus dem HOI).- Specified by:
organizationId
in interfaceXUserAssertionRequestBuilder
- Parameters:
organizationId
-the organisation id of the accessing person to be setdie Organisations-ID der zugreifenden Person die gesetzt werden sollder rolle der- Returns:
- the actual instance of this builderdie aktuelle Instanz des Builders
- See Also:
-
organizationName
Method to set the name of the organisation of the accessing person (plain text of the organisation).Setzt den Organisationsnamen des Zugreifers (Klartext des Organisationsnamens).- Specified by:
organizationName
in interfaceXUserAssertionRequestBuilder
- Parameters:
organizationName
-the organisation name of the accessing person to be setder Name der Organisation der zugreifenden Person die gesetzt werden sollder rolle der- Returns:
- the actual instance of this builderdie aktuelle Instanz des Builders
- See Also:
-
purposeOfUse
Method to set the reason of access in the actual application context (for the EPR in Switzerland: Code from the Swiss value set: normal access, emergency access).Setzt den Grund für den Zugriff im aktuellen Applikationskontext (für das EPD in der Schweiz: Code aus dem schweizerischen Value-Set: Normalzugriff, Notfallzugriff).- Specified by:
purposeOfUse
in interfaceXUserAssertionRequestBuilder
- Parameters:
purposeOfUse
-the purpose of user to be setder Grund des Zugriffes der gesetzt werden sollder rolle der- Returns:
- the actual instance of this builderdie aktuelle Instanz des Builders
- See Also:
-
requestType
Method to set the request type attribute.Setzt den Request Types Attribut.- Specified by:
requestType
in interfaceXUserAssertionRequestBuilder
- Parameters:
requestType
-the request type to be setder Request Typ der gesetzt werden sollder rolle der- Returns:
- the actual instance of this builderdie aktuelle Instanz des Builders
- See Also:
-
resourceId
Method to set the resource id of the actual application context of the transaction (for the EPR in Switzerland: EPR-SPID of the desired patient record).Setzt die Ressourcen-ID im aktuellen Applikationskontext auf welche sich die Transaktion bezieht (für das EPD in der Schweiz: EPR-SPID des gewünschten Patienten-Dossiers).- Specified by:
resourceId
in interfaceXUserAssertionRequestBuilder
- Parameters:
resourceId
-the resource id to be setdie ID der Ressource die gesetzt werden soll- Returns:
- the actual instance of this builderdie aktuelle Instanz des Builders
- See Also:
-
subjectId
Method to set the ID of the accessor (GLN or EPR-SPID).Setzt die Zugreifer ID (GLN oder EPR-SPID).- Specified by:
subjectId
in interfaceXUserAssertionRequestBuilder
- Parameters:
subjectId
-the id of the accessor to be setdie ID der zugreifenden Person die gesetzt werden soll- Returns:
- the actual instance of this builderdie aktuelle Instanz des Builders
- See Also:
-
subjectName
Method to set the name of the accessor (plain text of the user name)Setzt den Namen des Zugreifes (Klartext des Benutzernamens).- Specified by:
subjectName
in interfaceXUserAssertionRequestBuilder
- Parameters:
subjectName
-the id of the accessor to be setdie ID der zugreifenden Person die gesetzt werden soll- Returns:
- the actual instance of this builderdie aktuelle Instanz des Builders
- See Also:
-
subjectRole
Method to set role id of the accessor in the actual application context (for the EPR in Switzerland: Code from the Swiss Value Set for the role: patient, health professional, assistant, deputy).Setzt die ID der Rolle des Zugreifers im aktuellen Applikationskontext (für das EPD in der Schweiz: Code aus dem schweizerischen Value-Set für die Rolle: Patient(in), Behandelnde(r), Hilfsperson, Stellvertreter(in)).- Specified by:
subjectRole
in interfaceXUserAssertionRequestBuilder
- Parameters:
aRole
-the id of the role to be setdie ID der rolle der zugreifenden Person die gesetzt werden soll- Returns:
- the actual instance of this builderdie aktuelle Instanz des Builders
- See Also:
-
tokenType
Method to set the toke type attribute.Setzt den Token Types Attribut.- Specified by:
tokenType
in interfaceXUserAssertionRequestBuilder
- Parameters:
tokenType
-the token type to be setder Token Typ der gesetzt werden sollder rolle der- Returns:
- the actual instance of this builderdie aktuelle Instanz des Builders
- See Also:
-