use of com.github.zhenwei.core.asn1.ASN1SetParser in project LinLong-Java by zhenwei1108.
the class EnvelopedDataParser method getRecipientInfos.
public ASN1SetParser getRecipientInfos() throws IOException {
if (!_originatorInfoCalled) {
getOriginatorInfo();
}
if (_nextObject == null) {
_nextObject = _seq.readObject();
}
ASN1SetParser recipientInfos = (ASN1SetParser) _nextObject;
_nextObject = null;
return recipientInfos;
}
use of com.github.zhenwei.core.asn1.ASN1SetParser in project LinLong-Java by zhenwei1108.
the class EnvelopedDataParser method getUnprotectedAttrs.
public ASN1SetParser getUnprotectedAttrs() throws IOException {
if (_nextObject == null) {
_nextObject = _seq.readObject();
}
if (_nextObject != null) {
ASN1TaggedObjectParser o = (ASN1TaggedObjectParser) _nextObject;
_nextObject = null;
return (ASN1SetParser) ASN1Util.parseContextBaseUniversal(o, 1, false, BERTags.SET_OF);
}
return null;
}
use of com.github.zhenwei.core.asn1.ASN1SetParser in project LinLong-Java by zhenwei1108.
the class SignedDataParser method getCrls.
public ASN1SetParser getCrls() throws IOException {
if (!_certsCalled) {
throw new IOException("getCerts() has not been called.");
}
_crlsCalled = true;
if (_nextObject == null) {
_nextObject = _seq.readObject();
}
if (_nextObject instanceof ASN1TaggedObjectParser) {
ASN1TaggedObjectParser o = (ASN1TaggedObjectParser) _nextObject;
if (o.hasContextTag(1)) {
ASN1SetParser crls = (ASN1SetParser) o.parseBaseUniversal(false, BERTags.SET_OF);
_nextObject = null;
return crls;
}
}
return null;
}
use of com.github.zhenwei.core.asn1.ASN1SetParser in project LinLong-Java by zhenwei1108.
the class SignedDataParser method getCertificates.
public ASN1SetParser getCertificates() throws IOException {
_certsCalled = true;
_nextObject = _seq.readObject();
if (_nextObject instanceof ASN1TaggedObjectParser) {
ASN1TaggedObjectParser o = (ASN1TaggedObjectParser) _nextObject;
if (o.hasContextTag(0)) {
ASN1SetParser certs = (ASN1SetParser) o.parseBaseUniversal(false, BERTags.SET_OF);
_nextObject = null;
return certs;
}
}
return null;
}
Aggregations