aboutsummaryrefslogtreecommitdiff
path: root/src/main/model/pki/crl/RevokedCertificate.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/model/pki/crl/RevokedCertificate.java')
-rw-r--r--src/main/model/pki/crl/RevokedCertificate.java20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/main/model/pki/crl/RevokedCertificate.java b/src/main/model/pki/crl/RevokedCertificate.java
index 457ecb8..1f0afc1 100644
--- a/src/main/model/pki/crl/RevokedCertificate.java
+++ b/src/main/model/pki/crl/RevokedCertificate.java
@@ -38,22 +38,22 @@ public class RevokedCertificate extends ASN1Object {
@Override
public Byte[] encodeValueDER() {
final Byte[] r = new OctetString(OctetString.TAG,
- null,
- new Byte[]{ 0x0A, 0x01, (byte) reason.getVal() })
- .encodeDER();
+ null,
+ new Byte[]{0x0A, 0x01, (byte) reason.getVal()})
+ .encodeDER();
final Byte[] oid = new ObjectIdentifier(ObjectIdentifier.TAG, null, ObjectIdentifier.OID_CRL_REASON)
.encodeDER();
final Byte[] seqExt = Stream.of(Arrays.asList(TAG_SEQUENCE.encodeDER()),
- Arrays.asList(new ASN1Length(r.length + oid.length).encodeDER()),
- Arrays.asList(oid),
- Arrays.asList(r))
+ Arrays.asList(new ASN1Length(r.length + oid.length).encodeDER()),
+ Arrays.asList(oid),
+ Arrays.asList(r))
.flatMap(Collection::stream)
.toArray(Byte[]::new);
return Stream.of(Arrays.asList(serialNumber.encodeDER()),
- Arrays.asList(revocationDate.encodeDER()),
- Arrays.asList(TAG_SEQUENCE.encodeDER()),
- Arrays.asList(new ASN1Length(seqExt.length).encodeDER()),
- Arrays.asList(seqExt))
+ Arrays.asList(revocationDate.encodeDER()),
+ Arrays.asList(TAG_SEQUENCE.encodeDER()),
+ Arrays.asList(new ASN1Length(seqExt.length).encodeDER()),
+ Arrays.asList(seqExt))
.flatMap(Collection::stream)
.toArray(Byte[]::new);
}