Class EntityID

    • Constructor Detail

      • EntityID

        public EntityID​(URI value)
        Creates a new entity identifier from the specified URI.
        Parameters:
        value - The URI. Must not be null.
      • EntityID

        public EntityID​(Issuer issuer)
        Creates a new entity identifier from the specified issuer identifier.
        Parameters:
        issuer - The issuer. Must represent an URI and must not be null.
      • EntityID

        public EntityID​(Subject subject)
        Creates a new entity identifier from the specified subject identifier.
        Parameters:
        subject - The subject. Must represent an URI and must not be null.
      • EntityID

        public EntityID​(String value)
        Creates a new entity identifier with the specified value.
        Parameters:
        value - The identifier value. Must represent an URI and must not be null.
    • Method Detail

      • toURI

        public URI toURI()
        Returns the entity identifier as an URI.
        Returns:
        The entity identifier URI.
      • parse

        public static EntityID parse​(String value)
                              throws ParseException
        Parses an entity ID from the specified string.
        Parameters:
        value - The string value. Must not be null.
        Returns:
        The entity ID.
        Throws:
        ParseException - On a illegal entity ID.
      • parse

        public static EntityID parse​(Issuer issuer)
                              throws ParseException
        Parses an entity ID from the specified issuer.
        Parameters:
        issuer - The issuer. Must not be null.
        Returns:
        The entity ID.
        Throws:
        ParseException - On a illegal entity ID.
      • parse

        public static EntityID parse​(Subject subject)
                              throws ParseException
        Parses an entity ID from the specified subject.
        Parameters:
        subject - The subject. Must not be null.
        Returns:
        The entity ID.
        Throws:
        ParseException - On a illegal entity ID.