private int parseEncryptionContext(final byte[] b,final int off) throws ParseException {
  final int len=b.length - off;
  if (len >= encryptionContextLen_) {
    encryptionContext_=Arrays.copyOfRange(b,off,off + encryptionContextLen_);
    return encryptionContextLen_;
  }
 else {
    throw new ParseException("Not enough bytes to parse encryption context");
  }
}

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