Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/quite/humla-spongycastle.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2014-01-21 16:19:37 +0400
committerPeter Dettman <peter.dettman@bouncycastle.org>2014-01-21 16:19:37 +0400
commit46d951ed70843b506c4caa367da3f8be3ec1cae0 (patch)
tree555b166c411b2c1b41fe365f55cccb979eb932a7 /core/src/main/java/org/bouncycastle/asn1
parent4d2c8db92b476bfe554cf7268c145fb929581130 (diff)
Add alternate constructor as in C# build
Diffstat (limited to 'core/src/main/java/org/bouncycastle/asn1')
-rw-r--r--core/src/main/java/org/bouncycastle/asn1/x509/AuthorityInformationAccess.java11
1 files changed, 7 insertions, 4 deletions
diff --git a/core/src/main/java/org/bouncycastle/asn1/x509/AuthorityInformationAccess.java b/core/src/main/java/org/bouncycastle/asn1/x509/AuthorityInformationAccess.java
index 3a239ab0..f66f270d 100644
--- a/core/src/main/java/org/bouncycastle/asn1/x509/AuthorityInformationAccess.java
+++ b/core/src/main/java/org/bouncycastle/asn1/x509/AuthorityInformationAccess.java
@@ -60,6 +60,12 @@ public class AuthorityInformationAccess
}
}
+ public AuthorityInformationAccess(
+ AccessDescription description)
+ {
+ this.descriptions = new AccessDescription[]{ description };
+ }
+
/**
* create an AuthorityInformationAccess with the oid and location provided.
*/
@@ -67,12 +73,9 @@ public class AuthorityInformationAccess
ASN1ObjectIdentifier oid,
GeneralName location)
{
- descriptions = new AccessDescription[1];
-
- descriptions[0] = new AccessDescription(oid, location);
+ this(new AccessDescription(oid, location));
}
-
/**
*
* @return the access descriptions contained in this object.