Class ChEprValidationResult

java.lang.Object
org.projecthusky.xua.validation.ChEprValidationResult

public class ChEprValidationResult extends Object
The result of a CH:EPR XUA SAML token validation.
Author:
Quentin Ligier
  • Constructor Details

    • ChEprValidationResult

      public ChEprValidationResult(org.opensaml.saml.common.assertion.ValidationResult result, org.opensaml.saml.common.assertion.ValidationContext context)
      Constructor.
      Parameters:
      result - The OpenSAML 4 ValidationResult.
      context - The OpenSAML 4 ValidationContext 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 4 ValidationResult.
    • getContext

      public org.opensaml.saml.common.assertion.ValidationContext getContext()
      Returns the OpenSAML 4 ValidationContext used.
    • getRole

      public @Nullable Role 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

      public @Nullable PurposeOfUse getPurposeOfUse()
      Returns the CH-EPR purpose of use.
    • getHomeCommunityId

      public @Nullable String getHomeCommunityId()
      Returns the CH-EPR home community ID. It's the OID value, not URN-encoded.
    • getResponsibleSubjectId

      public @Nullable String 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

      public @Nullable String getAssistantGln()
      Returns the CH-EPR assistant GLN or null if the role is not Assistant.
    • getAssistantName

      public @Nullable String getAssistantName()
      Returns the CH-EPR assistant name or null if the role is not Assistant.
    • getTechnicalUserId

      public @Nullable String getTechnicalUserId()
      Returns the CH-EPR technical user unique ID.
    • getPatientEprSpid

      public @Nullable String getPatientEprSpid()
      Returns the CH-EPR patient EPR-SPID.
    • getSubjectName

      public @Nullable String getSubjectName()
      Returns the subject name.
    • getAudienceRestriction

      public @Nullable String getAudienceRestriction()
      Returns the CH-EPR audience restriction.
    • getOrganizationsName

      public List<String> getOrganizationsName()
      Returns the subject's organization name as registered in the HPD. It may be empty.
    • getOrganizationsId

      public List<String> 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.