private int parseKeyProviderInfo(final byte[] b,final int off) throws ParseException {
  final int bytesToParseLen=b.length - off;
  if (bytesToParseLen >= keyProviderInfoLen_) {
    keyProviderInfo_=Arrays.copyOfRange(b,off,off + keyProviderInfoLen_);
    return keyProviderInfoLen_;
  }
 else {
    throw new ParseException("Not enough bytes to parse key provider info");
  }
}

private int parseKeyProviderInfo ( final byte [ ] b , final int off ) throws ParseException { final int bytesToParseLen = b . length - off ; if ( bytesToParseLen >= keyProviderInfoLen_ ) { keyProviderInfo_ = Arrays . copyOfRange ( b , off , off + keyProviderInfoLen_ ) ; return keyProviderInfoLen_ ; } else { throw new ParseException ( "Not enough bytes to parse key provider info" ) ; } }
parse the key provider info in the provided bytes . it looks for bytes of size defined by the key provider info length in the provided bytes starting at the specified off . < p > if successful , it returns the size of the parsed bytes which is the key provider info length . on failure , it throws a parse exception .
