aboutsummaryrefslogtreecommitdiff
path: root/src/main/model/csr/CertificationRequestInfo.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/model/csr/CertificationRequestInfo.java')
-rw-r--r--src/main/model/csr/CertificationRequestInfo.java18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/main/model/csr/CertificationRequestInfo.java b/src/main/model/csr/CertificationRequestInfo.java
index 425dba9..8f68ac8 100644
--- a/src/main/model/csr/CertificationRequestInfo.java
+++ b/src/main/model/csr/CertificationRequestInfo.java
@@ -28,7 +28,7 @@ import java.util.stream.Stream;
* }
*
* </pre>
- *
+ * <p>
* It represents all information of a CSR (version, subject, public key, attributes).
* It will be signed, and the signature is in {@link CertificationRequest}.
*/
@@ -71,11 +71,11 @@ public class CertificationRequestInfo extends ASN1Object {
/**
* EFFECTS: Parse the object with the given DER input.
- * Throws {@link ParseException} if the input is invalid:
- * - Any fields missing (version, subject, subjectPKInfo, attributes)
- * - 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 (version, subject, subjectPKInfo, attributes)
+ * - 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 CertificationRequestInfo(BytesReader encoded, boolean hasParentTag) throws ParseException {
@@ -102,9 +102,9 @@ public class CertificationRequestInfo extends ASN1Object {
@Override
public Byte[] encodeValueDER() {
return Stream.of(Arrays.asList(version.encodeDER()),
- Arrays.asList(subject.encodeDER()),
- Arrays.asList(subjectPKInfo.encodeDER()),
- Arrays.asList(attributes.encodeDER()))
+ Arrays.asList(subject.encodeDER()),
+ Arrays.asList(subjectPKInfo.encodeDER()),
+ Arrays.asList(attributes.encodeDER()))
.flatMap(Collection::stream)
.toArray(Byte[]::new);
}