/** * Gets encoded form of DN * * @return return encoding, no copying is performed */ public byte[] getEncoded() { if (encoded == null) { encoded = ASN1.encode(this); } return encoded; }
/** * @see #getEncoded(String) */ private byte[] getEncoded(Encoding encoding) throws CertificateEncodingException { switch (encoding) { case PKI_PATH: if (pkiPathEncoding == null) { pkiPathEncoding = ASN1.encode(this); } return pkiPathEncoding.clone(); case PKCS7: if (pkcs7Encoding == null) { pkcs7Encoding = PKCS7_SIGNED_DATA_OBJECT.encode(this); } return pkcs7Encoding.clone(); default: throw new CertificateEncodingException("Unsupported encoding: " + encoding); } }
/** * Gets encoded form of DN * * @return return encoding, no copying is performed */ public byte[] getEncoded() { if (encoded == null) { encoded = ASN1.encode(this); } return encoded; }
/** * Gets encoded form of DN * * @return return encoding, no copying is performed */ public byte[] getEncoded() { if (encoded == null) { encoded = ASN1.encode(this); } return encoded; }
/** * Gets encoded form of DN * * @return return encoding, no copying is performed */ public byte[] getEncoded() { if (encoded == null) { encoded = ASN1.encode(this); } return encoded; }
/** * Gets encoded form of DN * * @return return encoding, no copying is performed */ public byte[] getEncoded() { if (encoded == null) { encoded = ASN1.encode(this); } return encoded; }
/** * Gets encoded form of DN * * @return return encoding, no copying is performed */ public byte[] getEncoded() { if (encoded == null) { encoded = ASN1.encode(this); } return encoded; }
/** * Gets encoded form of DN * * @return return encoding, no copying is performed */ public byte[] getEncoded() { if (encoded == null) { encoded = ASN1.encode(this); } return encoded; }
/** * @see #getEncoded(String) */ private byte[] getEncoded(Encoding encoding) throws CertificateEncodingException { switch (encoding) { case PKI_PATH: if (pkiPathEncoding == null) { pkiPathEncoding = ASN1.encode(this); } return pkiPathEncoding.clone(); case PKCS7: if (pkcs7Encoding == null) { pkcs7Encoding = PKCS7_SIGNED_DATA_OBJECT.encode(this); } return pkcs7Encoding.clone(); default: throw new CertificateEncodingException("Unsupported encoding: " + encoding); } }
/** * @see #getEncoded(String) */ private byte[] getEncoded(Encoding encoding) throws CertificateEncodingException { switch (encoding) { case PKI_PATH: if (pkiPathEncoding == null) { pkiPathEncoding = ASN1.encode(this); } return pkiPathEncoding.clone(); case PKCS7: if (pkcs7Encoding == null) { pkcs7Encoding = PKCS7_SIGNED_DATA_OBJECT.encode(this); } return pkcs7Encoding.clone(); default: throw new CertificateEncodingException("Unsupported encoding: " + encoding); } }
/** * @see #getEncoded(String) */ private byte[] getEncoded(Encoding encoding) throws CertificateEncodingException { switch (encoding) { case PKI_PATH: if (pkiPathEncoding == null) { pkiPathEncoding = ASN1.encode(this); } return pkiPathEncoding.clone(); case PKCS7: if (pkcs7Encoding == null) { pkcs7Encoding = PKCS7_SIGNED_DATA_OBJECT.encode(this); } return pkcs7Encoding.clone(); default: throw new CertificateEncodingException("Unsupported encoding: " + encoding); } }
/** * @see #getEncoded(String) */ private byte[] getEncoded(Encoding encoding) throws CertificateEncodingException { switch (encoding) { case PKI_PATH: if (pkiPathEncoding == null) { pkiPathEncoding = ASN1.encode(this); } return pkiPathEncoding.clone(); case PKCS7: if (pkcs7Encoding == null) { pkcs7Encoding = PKCS7_SIGNED_DATA_OBJECT.encode(this); } return pkcs7Encoding.clone(); default: throw new CertificateEncodingException("Unsupported encoding: " + encoding); } }
/** * @see #getEncoded(String) */ private byte[] getEncoded(Encoding encoding) throws CertificateEncodingException { switch (encoding) { case PKI_PATH: if (pkiPathEncoding == null) { pkiPathEncoding = ASN1.encode(this); } return pkiPathEncoding.clone(); case PKCS7: if (pkcs7Encoding == null) { pkcs7Encoding = PKCS7_SIGNED_DATA_OBJECT.encode(this); } return pkcs7Encoding.clone(); default: throw new CertificateEncodingException("Unsupported encoding: " + encoding); } }
/** * @see #getEncoded(String) */ private byte[] getEncoded(Encoding encoding) throws CertificateEncodingException { switch (encoding) { case PKI_PATH: if (pkiPathEncoding == null) { pkiPathEncoding = ASN1.encode(this); } return pkiPathEncoding.clone(); case PKCS7: if (pkcs7Encoding == null) { pkcs7Encoding = PKCS7_SIGNED_DATA_OBJECT.encode(this); } return pkcs7Encoding.clone(); default: throw new CertificateEncodingException("Unsupported encoding: " + encoding); } }