public static ObfuscatedData fromString ( String obfuscatedString ) { String [ ] parts = obfuscatedString . split ( "\\$" ) ; if ( parts . length != 5 ) { throw new IllegalArgumentException ( "Invalid obfuscated data" ) ; } if ( ! parts [ 1 ] . equals ( SIGNATURE ) ) { throw new IllegalArgumentException ( "Invalid obfuscated data" ) ; } return new ObfuscatedData ( Integer . parseInt ( parts [ 2 ] ) , Base64 . decode ( parts [ 3 ] ) , Base64 . decode ( parts [ 4 ] ) ) ; }
Parse string containing obfuscated data .