aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-10-13 18:30:46 +0000
committerlloyd <[email protected]>2008-10-13 18:30:46 +0000
commitd12628d4dc6b9f4d37b085bc5ddc89701e5db58c (patch)
tree1e4d1a58b55ce1257d91690331059b91c9972c52 /src
parent344e0ae03bbf3ae3fb4e90eb41c2297f9dc43c6d (diff)
More Doxygen comments from InSiTo
Diffstat (limited to 'src')
-rw-r--r--src/cert/x509/pkcs10.h63
1 files changed, 58 insertions, 5 deletions
diff --git a/src/cert/x509/pkcs10.h b/src/cert/x509/pkcs10.h
index f688688ee..c755bdfad 100644
--- a/src/cert/x509/pkcs10.h
+++ b/src/cert/x509/pkcs10.h
@@ -13,27 +13,80 @@
namespace Botan {
-/*************************************************
-* PKCS #10 Certificate Request *
-*************************************************/
+/**
+* PKCS #10 Certificate Request.
+*/
class BOTAN_DLL PKCS10_Request : public X509_Object
{
public:
+ /**
+ * Get the subject public key.
+ * @return the subject public key
+ */
Public_Key* subject_public_key() const;
+ /**
+ * Get the raw DER encoded public key.
+ * @return the raw DER encoded public key
+ */
MemoryVector<byte> raw_public_key() const;
+
+ /**
+ * Get the subject DN.
+ * @return the subject DN
+ */
X509_DN subject_dn() const;
+
+ /**
+ * Get the subject alternative name.
+ * @return the subject alternative name.
+ */
AlternativeName subject_alt_name() const;
+
+ /**
+ * Get the key constraints for the key associated with this
+ * PKCS#10 object.
+ * @return the key constraints
+ */
Key_Constraints constraints() const;
+
+ /**
+ * Get the extendend key constraints (if any).
+ * @return the extended key constraints
+ */
std::vector<OID> ex_constraints() const;
+ /**
+ * Find out whether this is a CA request.
+ * @result true if it is a CA request, false otherwise.
+ */
bool is_CA() const;
+
+ /**
+ * Return the constraint on the path length defined
+ * in the BasicConstraints extension.
+ * @return the path limit
+ */
u32bit path_limit() const;
+ /**
+ * Get the challenge password for this request
+ * @return the challenge password for this request
+ */
std::string challenge_password() const;
- PKCS10_Request(DataSource&);
- PKCS10_Request(const std::string&);
+ /**
+ * Create a PKCS#10 Request from a data source.
+ * @param source the data source providing the DER encoded request
+ */
+ PKCS10_Request(DataSource& source);
+
+ /**
+ * Create a PKCS#10 Request from a file.
+ * @param filename the name of the file containing the DER or PEM
+ * encoded request file
+ */
+ PKCS10_Request(const std::string& filename);
private:
void force_decode();
void handle_attribute(const Attribute&);