Class Document

    • Constructor Detail

      • Document

        public Document()
    • Method Detail

      • containsType

        public boolean containsType()
        Check if this object contains "type".
        Returns:
        true if this object contains "type".
      • removeType

        public String removeType()
        Remove "type" from this object.
        Returns:
        The old value that may have existed before removal.
      • getNumber

        public String getNumber()
        Get the number of the document.
        Returns:
        The number of the document.
      • setNumber

        public Document setNumber​(String number)
        Set the number of the document.
        Parameters:
        number - The number of the document.
        Returns:
        this object.
      • containsNumber

        public boolean containsNumber()
        Check if this object contains "number".
        Returns:
        true if this object contains "number".
      • removeNumber

        public String removeNumber()
        Remove "number" from this object.
        Returns:
        The old value that may have existed before removal.
      • getIssuer

        public Issuer getIssuer()
        Get the issuer of the document.
        Returns:
        The issuer of the document.
      • setIssuer

        public Document setIssuer​(Issuer issuer)
        Set the issuer of the document.
        Parameters:
        issuer - The issuer of the document.
        Returns:
        this object.
      • containsIssuer

        public boolean containsIssuer()
        Check if this object contains "issuer".
        Returns:
        true if this object contains "issuer".
      • removeIssuer

        public Issuer removeIssuer()
        Remove "issuer" from this object.
        Returns:
        The old value that may have existed before removal.
      • getDateOfIssuance

        public String getDateOfIssuance()
        Get the date of issuance of the document.
        Returns:
        The date of issuance of the document.
      • setDateOfIssuance

        public Document setDateOfIssuance​(String date)
        Set the date of issuance of the document.
        Parameters:
        date - The date of issuance of the document.
        Returns:
        this object.
      • containsDateOfIssuance

        public boolean containsDateOfIssuance()
        Check if this object contains "date_of_issuance".
        Returns:
        true if this object contains "date_of_issuance".
      • removeDateOfIssuance

        public String removeDateOfIssuance()
        Remove "date_of_issuance" from this object.
        Returns:
        The old value that may have existed before removal.
      • getDateOfExpiry

        public String getDateOfExpiry()
        Get the date of expiry of the document.
        Returns:
        The date of expiry of the document.
      • setDateOfExpiry

        public Document setDateOfExpiry​(String date)
        Set the date of expiry of the document.
        Parameters:
        date - The date of expiry of the document.
        Returns:
        this object.
      • containsDateOfExpiry

        public boolean containsDateOfExpiry()
        Check if this object contains "date_of_expiry".
        Returns:
        true if this object contains "date_of_expiry".
      • removeDateOfExpiry

        public String removeDateOfExpiry()
        Remove "date_of_expiry" from this object.
        Returns:
        The old value that may have existed before removal.
      • extract

        public static Document extract​(Map<?,​?> map,
                                       String key)
                                throws IdentityAssuranceException
        Create a Document instance from an object in the given map.
        Parameters:
        map - A map that may contain "document".
        key - The key that identifies the object in the map. In normal cases, the key is "document".
        Returns:
        A Document instance that represents "document". If the map does not contain the given key, null is returned.
        Throws:
        IdentityAssuranceException - The structure of the map does not conform to the specification (OpenID Connect for Identity Assurance 1.0).