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:
authorMatti Aarnio <mea--github@zmailer.org>2013-07-16 02:23:33 +0400
committerMatti Aarnio <mea--github@zmailer.org>2013-07-16 02:23:33 +0400
commit7752cc9ce881573da48ad9cdd69f643978837a6c (patch)
tree14b7f73a69b91713aca1c29a6147230f53bb718c /core/src/main/java/org/bouncycastle/asn1/cms/TimeStampAndCRL.java
parent4f2853cbaaf6f6176a5cf9d8465a501fa128f3a4 (diff)
More CMS Javadoc, remove all code changes.
Diffstat (limited to 'core/src/main/java/org/bouncycastle/asn1/cms/TimeStampAndCRL.java')
-rw-r--r--core/src/main/java/org/bouncycastle/asn1/cms/TimeStampAndCRL.java18
1 files changed, 12 insertions, 6 deletions
diff --git a/core/src/main/java/org/bouncycastle/asn1/cms/TimeStampAndCRL.java b/core/src/main/java/org/bouncycastle/asn1/cms/TimeStampAndCRL.java
index 38b9870d..f6d8d5a0 100644
--- a/core/src/main/java/org/bouncycastle/asn1/cms/TimeStampAndCRL.java
+++ b/core/src/main/java/org/bouncycastle/asn1/cms/TimeStampAndCRL.java
@@ -9,6 +9,7 @@ import org.bouncycastle.asn1.x509.CertificateList;
/**
* <a href="http://tools.ietf.org/html/rfc5544">RFC 5544</a>
+ * Binding Documents with Time-Stamps; TimeStampAndCRL object.
* <pre>
* TimeStampAndCRL ::= SEQUENCE {
* timeStamp TimeStampToken, -- according to RFC 3161
@@ -37,25 +38,30 @@ public class TimeStampAndCRL
}
/**
- * return a TimeStampAndCRL object from the given object.
+ * Return a TimeStampAndCRL object from the given object.
* <p>
* Accepted inputs:
* <ul>
- * <li> null -> null
+ * <li> null &rarr; null
* <li> {@link TimeStampAndCRL} object
- * <li> {@link org.bouncycastle.asn1.ASN1Sequence ASN1Sequence} input formats with TimeStampAndCRL structure inside
+ * <li> {@link org.bouncycastle.asn1.ASN1Sequence#getInstance(java.lang.Object) ASN1Sequence} input formats with TimeStampAndCRL structure inside
* </ul>
*
- * @param _obj the object we want converted.
+ * @param obj the object we want converted.
* @exception IllegalArgumentException if the object cannot be converted.
*/
public static TimeStampAndCRL getInstance(Object obj)
{
- if (obj == null || obj instanceof TimeStampAndCRL)
+ if (obj instanceof TimeStampAndCRL)
{
return (TimeStampAndCRL)obj;
}
- return new TimeStampAndCRL(ASN1Sequence.getInstance(obj));
+ else if (obj != null)
+ {
+ return new TimeStampAndCRL(ASN1Sequence.getInstance(obj));
+ }
+
+ return null;
}
public ContentInfo getTimeStampToken()