public static BoBHash fromCid ( String cid ) { String hashType = cid . substring ( 0 , cid . indexOf ( "+" ) ) ; String hash = cid . substring ( cid . indexOf ( "+" ) + 1 , cid . indexOf ( "@bob.xmpp.org" ) ) ; return new BoBHash ( hash , hashType ) ; }
Get BoB hash from cid attribute string .