code: public byte[] getEncodedKeyIdentifier() throws IOException {
          if (id != null) {
              DerOutputStream derOut = new DerOutputStream();
              id.encode(derOut);
              return derOut.toByteArray();
          }
          return null;
      }
docs: Return the encoded key identifier, or null if not specified.