Package org.projecthusky.xua.validation
Class ChEprValidationResult
java.lang.Object
org.projecthusky.xua.validation.ChEprValidationResult
The result of a CH:EPR XUA SAML token validation.
- Author:
- Quentin Ligier
-
Constructor Summary
ConstructorsConstructorDescriptionChEprValidationResult
(org.opensaml.saml.common.assertion.ValidationResult result, org.opensaml.saml.common.assertion.ValidationContext context) Constructor. -
Method Summary
Modifier and TypeMethodDescription@Nullable String
Returns the CH-EPR assistant GLN ornull
if the role is not Assistant.@Nullable String
Returns the CH-EPR assistant name ornull
if the role is not Assistant.@Nullable String
Returns the CH-EPR audience restriction.org.opensaml.saml.common.assertion.ValidationContext
Returns the OpenSAML 4ValidationContext
used.@Nullable String
Returns the CH-EPR home community ID.Returns the ID of the subject's organization or group registered in the HPD.Returns the subject's organization name as registered in the HPD.@Nullable String
Returns the CH-EPR patient EPR-SPID.@Nullable PurposeOfUse
Returns the CH-EPR purpose of use.@Nullable String
Returns the CH-EPR responsible subject ID.org.opensaml.saml.common.assertion.ValidationResult
Returns the OpenSAML 4ValidationResult
.@Nullable Role
getRole()
Returns the CH-EPR role.@Nullable String
Returns the subject name.@Nullable String
Returns the CH-EPR technical user unique ID.static ChEprValidationResult
static ChEprValidationResult
valid
(org.opensaml.saml.common.assertion.ValidationContext context)
-
Constructor Details
-
ChEprValidationResult
public ChEprValidationResult(org.opensaml.saml.common.assertion.ValidationResult result, org.opensaml.saml.common.assertion.ValidationContext context) Constructor.- Parameters:
result
- The OpenSAML 4ValidationResult
.context
- The OpenSAML 4ValidationContext
used.
-
-
Method Details
-
valid
public static ChEprValidationResult valid(org.opensaml.saml.common.assertion.ValidationContext context) -
invalid
public static ChEprValidationResult invalid(org.opensaml.saml.common.assertion.ValidationContext context, String message) -
getResult
public org.opensaml.saml.common.assertion.ValidationResult getResult()Returns the OpenSAML 4ValidationResult
. -
getContext
public org.opensaml.saml.common.assertion.ValidationContext getContext()Returns the OpenSAML 4ValidationContext
used. -
getRole
Returns the CH-EPR role. Assistants and technical users are using their own code here while they use HCP in the SAML attribute. -
getPurposeOfUse
Returns the CH-EPR purpose of use. -
getHomeCommunityId
Returns the CH-EPR home community ID. It's the OID value, not URN-encoded. -
getResponsibleSubjectId
Returns the CH-EPR responsible subject ID.For the following roles, it specifies:
- HCP: the GLN of the healthcare professional.
- ASS: the GLN of the supervising healthcare professional.
- TCU: the GLN of the supervising healthcare professional.
- DADM: the unique ID the administrator is registered within the community.
- PADM: the unique ID the administrator is registered within the community.
- PAT: the patient EPR-SPID.
- REP: the unique ID the representative is registered within the community.
-
getAssistantGln
Returns the CH-EPR assistant GLN ornull
if the role is not Assistant. -
getAssistantName
Returns the CH-EPR assistant name ornull
if the role is not Assistant. -
getTechnicalUserId
Returns the CH-EPR technical user unique ID. -
getPatientEprSpid
Returns the CH-EPR patient EPR-SPID. -
getSubjectName
Returns the subject name. -
getAudienceRestriction
Returns the CH-EPR audience restriction. -
getOrganizationsName
Returns the subject's organization name as registered in the HPD. It may be empty. -
getOrganizationsId
Returns the ID of the subject's organization or group registered in the HPD. It may be empty. It's the OID values, not URN-encoded.
-