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-06-20 23:27:54 +0400
committerMatti Aarnio <mea--github@zmailer.org>2013-07-14 18:52:15 +0400
commit4f2853cbaaf6f6176a5cf9d8465a501fa128f3a4 (patch)
treed0e36bfd5e5770568c2638eb5a2df9abf77cfd4c /core/src/main/java/org/bouncycastle/asn1/cms/AuthenticatedData.java
parentd62c5e6324938d5c983063741617156c61adc4be (diff)
ASN.1 CMS Javadoc write
The ASN.1 syntax fragment and specifying document references are at the start of the document page. Each getInstance(Object o) has listing / links of accepted input syntaxes.
Diffstat (limited to 'core/src/main/java/org/bouncycastle/asn1/cms/AuthenticatedData.java')
-rw-r--r--core/src/main/java/org/bouncycastle/asn1/cms/AuthenticatedData.java47
1 files changed, 29 insertions, 18 deletions
diff --git a/core/src/main/java/org/bouncycastle/asn1/cms/AuthenticatedData.java b/core/src/main/java/org/bouncycastle/asn1/cms/AuthenticatedData.java
index bbf98f1e..b1fb8806 100644
--- a/core/src/main/java/org/bouncycastle/asn1/cms/AuthenticatedData.java
+++ b/core/src/main/java/org/bouncycastle/asn1/cms/AuthenticatedData.java
@@ -14,6 +14,29 @@ import org.bouncycastle.asn1.BERSequence;
import org.bouncycastle.asn1.DERTaggedObject;
import org.bouncycastle.asn1.x509.AlgorithmIdentifier;
+/**
+ * <a href="http://tools.ietf.org/html/rfc5652#section-9.1">RFC 5652</a>
+ *
+ * <pre>
+ * AuthenticatedData ::= SEQUENCE {
+ * version CMSVersion,
+ * originatorInfo [0] IMPLICIT OriginatorInfo OPTIONAL,
+ * recipientInfos RecipientInfos,
+ * macAlgorithm MessageAuthenticationCodeAlgorithm,
+ * digestAlgorithm [1] DigestAlgorithmIdentifier OPTIONAL,
+ * encapContentInfo EncapsulatedContentInfo,
+ * authAttrs [2] IMPLICIT AuthAttributes OPTIONAL,
+ * mac MessageAuthenticationCode,
+ * unauthAttrs [3] IMPLICIT UnauthAttributes OPTIONAL }
+ *
+ * AuthAttributes ::= SET SIZE (1..MAX) OF Attribute
+ *
+ * UnauthAttributes ::= SET SIZE (1..MAX) OF Attribute
+ *
+ * MessageAuthenticationCode ::= OCTET STRING
+ * </pre>
+ */
+
public class AuthenticatedData
extends ASN1Object
{
@@ -119,6 +142,12 @@ public class AuthenticatedData
/**
* return an AuthenticatedData object from the given object.
+ * <p>
+ * Accepted inputs:
+ * <ul>
+ * <li> {@link AuthenticatedData} object
+ * <li> {@link org.bouncycastle.asn1.ASN1Sequence ASN1Sequence} input formats with AuthenticatedData structure inside
+ * </ul>
*
* @param obj the object we want converted.
* @throws IllegalArgumentException if the object cannot be converted.
@@ -186,24 +215,6 @@ public class AuthenticatedData
/**
* Produce an object suitable for an ASN1OutputStream.
- * <pre>
- * AuthenticatedData ::= SEQUENCE {
- * version CMSVersion,
- * originatorInfo [0] IMPLICIT OriginatorInfo OPTIONAL,
- * recipientInfos RecipientInfos,
- * macAlgorithm MessageAuthenticationCodeAlgorithm,
- * digestAlgorithm [1] DigestAlgorithmIdentifier OPTIONAL,
- * encapContentInfo EncapsulatedContentInfo,
- * authAttrs [2] IMPLICIT AuthAttributes OPTIONAL,
- * mac MessageAuthenticationCode,
- * unauthAttrs [3] IMPLICIT UnauthAttributes OPTIONAL }
- *
- * AuthAttributes ::= SET SIZE (1..MAX) OF Attribute
- *
- * UnauthAttributes ::= SET SIZE (1..MAX) OF Attribute
- *
- * MessageAuthenticationCode ::= OCTET STRING
- * </pre>
*/
public ASN1Primitive toASN1Primitive()
{