code: public CodecCipher setInit(Certificate certificate, SecureRandom random) throws IllegalArgumentException
      {
          if (certificate == null)
          {
              throw new IllegalArgumentException("certificate is null.");
          }
  
          return setInit(null, null, null, certificate, random);
      }
docs: Set cipher initialization parameters.
  
  <p>
  If this method is used to set initialization parameters,
  {@link Cipher#init(int, Certificate, SecureRandom)
  Cipher.init(mode, (Certificate)certificate, (SecureRandom)random)}
  is called later from within {@code encrypt}/{@code decrypt} methods.
  </p>
  
  @param certificate
  
  @param random
  
  @return
  {@code this} object.
  
  @throws IllegalArgumentException
  {@code certificate} is {@code null}.