try {
bos = new ByteArrayOutputStream();
enc = new DEREncoder(bos);
key.encode(enc);
encodedKey_ = new ASN1OctetString(bos.toByteArray());
enc.close();
set(2, encodedKey_);
} catch (ASN1Exception e) {
throw new InconsistentStateException("Internal, encoding error!");
} catch (IOException e) {