+
+ /**
+ * Returns the base64-encoded DER encoding of a public key in SubjectPublicKeyInfo format.
+ *
+ * @param key the key to encode
+ * @return the base64 encoded key value
+ */
+ static std::string getDEREncoding(const XSECCryptoKey* key);
+
+ /**
+ * Returns the base64-encoded DER encoding of a certifiate's public key in SubjectPublicKeyInfo format.
+ *
+ * @param cert the certificate's key to encode
+ * @return the base64 encoded key value
+ */
+ static std::string getDEREncoding(const XSECCryptoX509* cert);