Class DirectSignerResponse

    • Method Detail

      • fromJaxb

        public static DirectSignerResponse fromJaxb​(no.digipost.signature.api.xml.XMLDirectSignerResponse signer)
      • hasIdentifier

        public boolean hasIdentifier​(String identifier)
        Check if this signer is identified by the given identifier string, either as personal identification number or a custom identifier.
        Parameters:
        identifier - either a personal identification number or a custom identifier
        Returns:
        true if this signer has the given identifier, false otherwise.
      • isIdentifiedByPersonalIdentificationNumber

        public boolean isIdentifiedByPersonalIdentificationNumber()
        Check if this signer is identified by a personal identification number. If this method returns true, getPersonalIdentificationNumber() can safely be called. Likewise, if it returns false, then getCustomIdentifier() can be called.
        Returns:
        true if this signer is identified by a personal identification number, false otherwise.
      • getPersonalIdentificationNumber

        public String getPersonalIdentificationNumber()
        Get the personal identification number for this signer.
        Returns:
        the personal identification number
        Throws:
        IllegalStateException - if this signer is not identified by personal identification number
      • getCustomIdentifier

        public String getCustomIdentifier()
        Get the custom identifier string for this signer.
        Returns:
        the custom identifier
        Throws:
        IllegalStateException - if this signer is not identified by a custom identifier string
      • getSignerUrl

        public URI getSignerUrl()
        Specified by:
        getSignerUrl in interface WithSignerUrl
        Returns:
        the URL for a specific signer of a signature job
      • getRedirectUrl

        public URI getRedirectUrl()