diff options
Diffstat (limited to 'bcprov/src/main/java/org/bouncycastle/asn1/DERSetParser.java')
-rw-r--r-- | bcprov/src/main/java/org/bouncycastle/asn1/DERSetParser.java | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/bcprov/src/main/java/org/bouncycastle/asn1/DERSetParser.java b/bcprov/src/main/java/org/bouncycastle/asn1/DERSetParser.java index 17702fa4..d16cb157 100644 --- a/bcprov/src/main/java/org/bouncycastle/asn1/DERSetParser.java +++ b/bcprov/src/main/java/org/bouncycastle/asn1/DERSetParser.java @@ -2,6 +2,9 @@ package org.bouncycastle.asn1; import java.io.IOException; +/** + * Parser class for DER SETs. + */ public class DERSetParser implements ASN1SetParser { @@ -12,18 +15,35 @@ public class DERSetParser this._parser = parser; } + /** + * Return the next object in the SET. + * + * @return next object in SET. + * @throws IOException if there is an issue loading the object. + */ public ASN1Encodable readObject() throws IOException { return _parser.readObject(); } + /** + * Return an in memory, encodable, representation of the SET. + * + * @return a DERSet. + * @throws IOException if there is an issue loading the data. + */ public ASN1Primitive getLoadedObject() throws IOException { return new DERSet(_parser.readVector(), false); } + /** + * Return a DERSet representing this parser and its contents. + * + * @return a DERSet + */ public ASN1Primitive toASN1Primitive() { try |