Class ContentId

    • Constructor Detail

      • ContentId

        public ContentId​(String hash,
                         String hashType)
        BoB hash constructor.
        Parameters:
        hash - TODO javadoc me please
        hashType - TODO javadoc me please
    • Method Detail

      • getHash

        public String getHash()
        Get the hash.
        Returns:
        the hash
      • getHashType

        public String getHashType()
        Get the hash type.
        Returns:
        the hash type
      • toSrc

        public String toSrc()
        BoB hash to src attribute string.
        Returns:
        src attribute string
      • getCid

        public String getCid()
        BoB hash to cid attribute string.
        Returns:
        cid attribute string
      • fromSrc

        public static ContentId fromSrc​(String src)
        Get BoB hash from src attribute string.
        Parameters:
        src - TODO javadoc me please
        Returns:
        the BoB hash
      • fromCid

        public static ContentId fromCid​(String cid)
        Get BoB hash from cid attribute string.
        Parameters:
        cid - TODO javadoc me please
        Returns:
        the BoB hash