aboutsummaryrefslogtreecommitdiff
path: root/src/main/model/csr/CertificationRequest.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/model/csr/CertificationRequest.java')
-rw-r--r--src/main/model/csr/CertificationRequest.java16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/main/model/csr/CertificationRequest.java b/src/main/model/csr/CertificationRequest.java
index c08997c..64203f9 100644
--- a/src/main/model/csr/CertificationRequest.java
+++ b/src/main/model/csr/CertificationRequest.java
@@ -20,7 +20,7 @@ import java.util.stream.Stream;
* signature BIT STRING
* }
* </pre>
- *
+ * <p>
* A CSR is used to request a certificate from a CA, using a public key. The client encodes a CSR with
* its subject name, public key, and attributes, and sign that with their private key. The private key
* must match the public key encoded in the CSR. This is to prove to the CA that the client has the private
@@ -65,11 +65,11 @@ public class CertificationRequest extends ASN1Object {
/**
* EFFECTS: Parse input DER CSR, without verifying the signature.
- * Throws {@link ParseException} if the input is invalid:
- * - Any fields missing (info, algorithm, signature)
- * - Any fields having an incorrect tag (as seen in the ASN.1 definition)
- * - Any fields with encoding instructions that violate implicit / explicit encoding rules
- * - Other issues found during parsing the object, like early EOF (see {@link ASN1Object})
+ * Throws {@link ParseException} if the input is invalid:
+ * - Any fields missing (info, algorithm, signature)
+ * - Any fields having an incorrect tag (as seen in the ASN.1 definition)
+ * - Any fields with encoding instructions that violate implicit / explicit encoding rules
+ * - Other issues found during parsing the object, like early EOF (see {@link ASN1Object})
* MODIFIES: this, encoded
*/
public CertificationRequest(BytesReader encoded, boolean hasParentTag) throws ParseException {
@@ -90,8 +90,8 @@ public class CertificationRequest extends ASN1Object {
@Override
public Byte[] encodeValueDER() {
return Stream.of(Arrays.asList(certificationRequestInfo.encodeDER()),
- Arrays.asList(signatureAlgorithm.encodeDER()),
- Arrays.asList(signature.encodeDER()))
+ Arrays.asList(signatureAlgorithm.encodeDER()),
+ Arrays.asList(signature.encodeDER()))
.flatMap(Collection::stream)
.toArray(Byte[]::new);
}