use of com.github.zhenwei.core.asn1.ASN1SequenceParser in project LinLong-Java by zhenwei1108.
the class AuthenticatedDataParser method getEncapsulatedContentInfo.
public ContentInfoParser getEncapsulatedContentInfo() throws IOException {
if (nextObject == null) {
nextObject = seq.readObject();
}
if (nextObject != null) {
ASN1SequenceParser o = (ASN1SequenceParser) nextObject;
nextObject = null;
return new ContentInfoParser(o);
}
return null;
}
use of com.github.zhenwei.core.asn1.ASN1SequenceParser in project LinLong-Java by zhenwei1108.
the class EnvelopedDataParser method getOriginatorInfo.
public OriginatorInfo getOriginatorInfo() throws IOException {
_originatorInfoCalled = true;
if (_nextObject == null) {
_nextObject = _seq.readObject();
}
if (_nextObject instanceof ASN1TaggedObjectParser) {
ASN1TaggedObjectParser o = (ASN1TaggedObjectParser) _nextObject;
if (o.hasContextTag(0)) {
ASN1SequenceParser originatorInfo = (ASN1SequenceParser) o.parseBaseUniversal(false, BERTags.SEQUENCE);
_nextObject = null;
return OriginatorInfo.getInstance(originatorInfo.getLoadedObject());
}
}
return null;
}
Aggregations