aboutsummaryrefslogtreecommitdiff
path: root/src/main/model/csr/Attribute.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/model/csr/Attribute.java')
-rw-r--r--src/main/model/csr/Attribute.java16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/main/model/csr/Attribute.java b/src/main/model/csr/Attribute.java
index 2fa319b..2daa000 100644
--- a/src/main/model/csr/Attribute.java
+++ b/src/main/model/csr/Attribute.java
@@ -18,7 +18,7 @@ import java.util.stream.Stream;
* values SET SIZE(1..MAX) OF ATTRIBUTE.&Type({IOSet}{@type})
* }
* </pre>
- *
+ * <p>
* Represents a key - values pair in the CSR attribute.
*/
public class Attribute extends ASN1Object {
@@ -38,7 +38,7 @@ public class Attribute extends ASN1Object {
* REQUIRES: The values must match the type. Type tag should be UNIVERSAL OID, and values should be SET OF.
*/
public Attribute(Tag tag, Tag parentTag,
- ObjectIdentifier type, Values values) {
+ ObjectIdentifier type, Values values) {
super(tag, parentTag);
this.type = type;
this.values = values;
@@ -46,11 +46,11 @@ public class Attribute extends ASN1Object {
/**
* EFFECTS: Parse input DER. Value is not checked against the type.
- * Throws {@link ASN1Object} if 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 ASN1Object} if 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 Attribute(BytesReader encoded, boolean hasParentTag) throws ParseException {
@@ -68,7 +68,7 @@ public class Attribute extends ASN1Object {
@Override
public Byte[] encodeValueDER() {
return Stream.of(Arrays.asList(type.encodeDER()),
- Arrays.asList(values.encodeDER()))
+ Arrays.asList(values.encodeDER()))
.flatMap(Collection::stream)
.toArray(Byte[]::new);
}