code: protected Object processObject(BufferedReader in, String line, byte[] password)
          throws IOException, GeneralSecurityException
      {
          if (line.contains(PEM_BEGIN + CERTIFICATE + DASHES)) {
              return this.certificateFactory.decode(readBytes(in, PEM_END + CERTIFICATE + DASHES));
          }
          return null;
      }
docs: Process an object from a PEM like file.
  
  @param in the input reader to read from.
  @param line the last read line.
  @param password a password to decrypt encrypted objects. May be null if the object is not encrypted.
  @return the object read, or null if the line was not a recognized PEM header.
  @throws IOException on I/O error.
  @throws GeneralSecurityException on decryption error.