public class org.bouncycastle.tsp.cms.CMSTimeStampedDataParser extends org.bouncycastle.cms.CMSContentInfoParser
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.bouncycastle.tsp.cms.CMSTimeStampedDataParser
super_class: org.bouncycastle.cms.CMSContentInfoParser
{
private org.bouncycastle.asn1.cms.TimeStampedDataParser timeStampedData;
descriptor: Lorg/bouncycastle/asn1/cms/TimeStampedDataParser;
flags: (0x0002) ACC_PRIVATE
private org.bouncycastle.tsp.cms.TimeStampDataUtil util;
descriptor: Lorg/bouncycastle/tsp/cms/TimeStampDataUtil;
flags: (0x0002) ACC_PRIVATE
public void <init>(java.io.InputStream);
descriptor: (Ljava/io/InputStream;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial org.bouncycastle.cms.CMSContentInfoParser.<init>:(Ljava/io/InputStream;)V
1: aload 0
aload 0
getfield org.bouncycastle.tsp.cms.CMSTimeStampedDataParser._contentInfo:Lorg/bouncycastle/asn1/cms/ContentInfoParser;
invokevirtual org.bouncycastle.tsp.cms.CMSTimeStampedDataParser.initialize:(Lorg/bouncycastle/asn1/cms/ContentInfoParser;)V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/bouncycastle/tsp/cms/CMSTimeStampedDataParser;
0 3 1 in Ljava/io/InputStream;
Exceptions:
throws org.bouncycastle.cms.CMSException
MethodParameters:
Name Flags
in
public void <init>(byte[]);
descriptor: ([B)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
new java.io.ByteArrayInputStream
dup
aload 1
invokespecial java.io.ByteArrayInputStream.<init>:([B)V
invokespecial org.bouncycastle.tsp.cms.CMSTimeStampedDataParser.<init>:(Ljava/io/InputStream;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/bouncycastle/tsp/cms/CMSTimeStampedDataParser;
0 2 1 baseData [B
Exceptions:
throws org.bouncycastle.cms.CMSException
MethodParameters:
Name Flags
baseData
private void initialize(org.bouncycastle.asn1.cms.ContentInfoParser);
descriptor: (Lorg/bouncycastle/asn1/cms/ContentInfoParser;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: getstatic org.bouncycastle.asn1.cms.CMSObjectIdentifiers.timestampedData:Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
aload 1
invokevirtual org.bouncycastle.asn1.cms.ContentInfoParser.getContentType:()Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
invokevirtual org.bouncycastle.asn1.ASN1ObjectIdentifier.equals:(Ljava/lang/Object;)Z
ifeq 3
1: aload 0
aload 1
bipush 16
invokevirtual org.bouncycastle.asn1.cms.ContentInfoParser.getContent:(I)Lorg/bouncycastle/asn1/ASN1Encodable;
invokestatic org.bouncycastle.asn1.cms.TimeStampedDataParser.getInstance:(Ljava/lang/Object;)Lorg/bouncycastle/asn1/cms/TimeStampedDataParser;
putfield org.bouncycastle.tsp.cms.CMSTimeStampedDataParser.timeStampedData:Lorg/bouncycastle/asn1/cms/TimeStampedDataParser;
2: goto 6
3: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Malformed content - type must be "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
getstatic org.bouncycastle.asn1.cms.CMSObjectIdentifiers.timestampedData:Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
invokevirtual org.bouncycastle.asn1.ASN1ObjectIdentifier.getId:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack: java.io.IOException
astore 2
start local 2 5: new org.bouncycastle.cms.CMSException
dup
new java.lang.StringBuilder
dup
ldc "parsing exception: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.io.IOException.getMessage:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 2
invokespecial org.bouncycastle.cms.CMSException.<init>:(Ljava/lang/String;Ljava/lang/Exception;)V
athrow
end local 2 6: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/bouncycastle/tsp/cms/CMSTimeStampedDataParser;
0 7 1 contentInfo Lorg/bouncycastle/asn1/cms/ContentInfoParser;
5 6 2 e Ljava/io/IOException;
Exception table:
from to target type
0 4 4 Class java.io.IOException
Exceptions:
throws org.bouncycastle.cms.CMSException
MethodParameters:
Name Flags
contentInfo
public byte[] calculateNextHash(org.bouncycastle.operator.DigestCalculator);
descriptor: (Lorg/bouncycastle/operator/DigestCalculator;)[B
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.bouncycastle.tsp.cms.CMSTimeStampedDataParser.util:Lorg/bouncycastle/tsp/cms/TimeStampDataUtil;
aload 1
invokevirtual org.bouncycastle.tsp.cms.TimeStampDataUtil.calculateNextHash:(Lorg/bouncycastle/operator/DigestCalculator;)[B
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/tsp/cms/CMSTimeStampedDataParser;
0 1 1 calculator Lorg/bouncycastle/operator/DigestCalculator;
Exceptions:
throws org.bouncycastle.cms.CMSException
MethodParameters:
Name Flags
calculator
public java.io.InputStream getContent();
descriptor: ()Ljava/io/InputStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.bouncycastle.tsp.cms.CMSTimeStampedDataParser.timeStampedData:Lorg/bouncycastle/asn1/cms/TimeStampedDataParser;
invokevirtual org.bouncycastle.asn1.cms.TimeStampedDataParser.getContent:()Lorg/bouncycastle/asn1/ASN1OctetStringParser;
ifnull 2
1: aload 0
getfield org.bouncycastle.tsp.cms.CMSTimeStampedDataParser.timeStampedData:Lorg/bouncycastle/asn1/cms/TimeStampedDataParser;
invokevirtual org.bouncycastle.asn1.cms.TimeStampedDataParser.getContent:()Lorg/bouncycastle/asn1/ASN1OctetStringParser;
invokeinterface org.bouncycastle.asn1.ASN1OctetStringParser.getOctetStream:()Ljava/io/InputStream;
areturn
2: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/bouncycastle/tsp/cms/CMSTimeStampedDataParser;
public java.net.URI getDataUri();
descriptor: ()Ljava/net/URI;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
getfield org.bouncycastle.tsp.cms.CMSTimeStampedDataParser.timeStampedData:Lorg/bouncycastle/asn1/cms/TimeStampedDataParser;
invokevirtual org.bouncycastle.asn1.cms.TimeStampedDataParser.getDataUri:()Lorg/bouncycastle/asn1/DERIA5String;
astore 1
start local 1 1: aload 1
ifnull 3
2: new java.net.URI
dup
aload 1
invokevirtual org.bouncycastle.asn1.DERIA5String.getString:()Ljava/lang/String;
invokespecial java.net.URI.<init>:(Ljava/lang/String;)V
areturn
3: StackMap locals: org.bouncycastle.asn1.DERIA5String
StackMap stack:
aconst_null
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/bouncycastle/tsp/cms/CMSTimeStampedDataParser;
1 4 1 dataURI Lorg/bouncycastle/asn1/DERIA5String;
Exceptions:
throws java.net.URISyntaxException
public java.lang.String getFileName();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.bouncycastle.tsp.cms.CMSTimeStampedDataParser.util:Lorg/bouncycastle/tsp/cms/TimeStampDataUtil;
invokevirtual org.bouncycastle.tsp.cms.TimeStampDataUtil.getFileName:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/tsp/cms/CMSTimeStampedDataParser;
public java.lang.String getMediaType();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.bouncycastle.tsp.cms.CMSTimeStampedDataParser.util:Lorg/bouncycastle/tsp/cms/TimeStampDataUtil;
invokevirtual org.bouncycastle.tsp.cms.TimeStampDataUtil.getMediaType:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/tsp/cms/CMSTimeStampedDataParser;
public org.bouncycastle.asn1.cms.AttributeTable getOtherMetaData();
descriptor: ()Lorg/bouncycastle/asn1/cms/AttributeTable;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.bouncycastle.tsp.cms.CMSTimeStampedDataParser.util:Lorg/bouncycastle/tsp/cms/TimeStampDataUtil;
invokevirtual org.bouncycastle.tsp.cms.TimeStampDataUtil.getOtherMetaData:()Lorg/bouncycastle/asn1/cms/AttributeTable;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/tsp/cms/CMSTimeStampedDataParser;
public void initialiseMessageImprintDigestCalculator(org.bouncycastle.operator.DigestCalculator);
descriptor: (Lorg/bouncycastle/operator/DigestCalculator;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.bouncycastle.tsp.cms.CMSTimeStampedDataParser.util:Lorg/bouncycastle/tsp/cms/TimeStampDataUtil;
aload 1
invokevirtual org.bouncycastle.tsp.cms.TimeStampDataUtil.initialiseMessageImprintDigestCalculator:(Lorg/bouncycastle/operator/DigestCalculator;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/bouncycastle/tsp/cms/CMSTimeStampedDataParser;
0 2 1 calculator Lorg/bouncycastle/operator/DigestCalculator;
Exceptions:
throws org.bouncycastle.cms.CMSException
MethodParameters:
Name Flags
calculator
public org.bouncycastle.operator.DigestCalculator getMessageImprintDigestCalculator(org.bouncycastle.operator.DigestCalculatorProvider);
descriptor: (Lorg/bouncycastle/operator/DigestCalculatorProvider;)Lorg/bouncycastle/operator/DigestCalculator;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.bouncycastle.tsp.cms.CMSTimeStampedDataParser.parseTimeStamps:()V
1: goto 4
2: StackMap locals:
StackMap stack: org.bouncycastle.cms.CMSException
astore 2
start local 2 3: new org.bouncycastle.operator.OperatorCreationException
dup
new java.lang.StringBuilder
dup
ldc "unable to extract algorithm ID: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual org.bouncycastle.cms.CMSException.getMessage:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 2
invokespecial org.bouncycastle.operator.OperatorCreationException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 2 4: StackMap locals:
StackMap stack:
aload 0
getfield org.bouncycastle.tsp.cms.CMSTimeStampedDataParser.util:Lorg/bouncycastle/tsp/cms/TimeStampDataUtil;
aload 1
invokevirtual org.bouncycastle.tsp.cms.TimeStampDataUtil.getMessageImprintDigestCalculator:(Lorg/bouncycastle/operator/DigestCalculatorProvider;)Lorg/bouncycastle/operator/DigestCalculator;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/bouncycastle/tsp/cms/CMSTimeStampedDataParser;
0 5 1 calculatorProvider Lorg/bouncycastle/operator/DigestCalculatorProvider;
3 4 2 e Lorg/bouncycastle/cms/CMSException;
Exception table:
from to target type
0 1 2 Class org.bouncycastle.cms.CMSException
Exceptions:
throws org.bouncycastle.operator.OperatorCreationException
MethodParameters:
Name Flags
calculatorProvider
public org.bouncycastle.tsp.TimeStampToken[] getTimeStampTokens();
descriptor: ()[Lorg/bouncycastle/tsp/TimeStampToken;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.bouncycastle.tsp.cms.CMSTimeStampedDataParser.parseTimeStamps:()V
1: aload 0
getfield org.bouncycastle.tsp.cms.CMSTimeStampedDataParser.util:Lorg/bouncycastle/tsp/cms/TimeStampDataUtil;
invokevirtual org.bouncycastle.tsp.cms.TimeStampDataUtil.getTimeStampTokens:()[Lorg/bouncycastle/tsp/TimeStampToken;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/bouncycastle/tsp/cms/CMSTimeStampedDataParser;
Exceptions:
throws org.bouncycastle.cms.CMSException
public void validate(org.bouncycastle.operator.DigestCalculatorProvider, byte[]);
descriptor: (Lorg/bouncycastle/operator/DigestCalculatorProvider;[B)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual org.bouncycastle.tsp.cms.CMSTimeStampedDataParser.parseTimeStamps:()V
1: aload 0
getfield org.bouncycastle.tsp.cms.CMSTimeStampedDataParser.util:Lorg/bouncycastle/tsp/cms/TimeStampDataUtil;
aload 1
aload 2
invokevirtual org.bouncycastle.tsp.cms.TimeStampDataUtil.validate:(Lorg/bouncycastle/operator/DigestCalculatorProvider;[B)V
2: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/bouncycastle/tsp/cms/CMSTimeStampedDataParser;
0 3 1 calculatorProvider Lorg/bouncycastle/operator/DigestCalculatorProvider;
0 3 2 dataDigest [B
Exceptions:
throws org.bouncycastle.tsp.cms.ImprintDigestInvalidException, org.bouncycastle.cms.CMSException
MethodParameters:
Name Flags
calculatorProvider
dataDigest
public void validate(org.bouncycastle.operator.DigestCalculatorProvider, byte[], org.bouncycastle.tsp.TimeStampToken);
descriptor: (Lorg/bouncycastle/operator/DigestCalculatorProvider;[BLorg/bouncycastle/tsp/TimeStampToken;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokevirtual org.bouncycastle.tsp.cms.CMSTimeStampedDataParser.parseTimeStamps:()V
1: aload 0
getfield org.bouncycastle.tsp.cms.CMSTimeStampedDataParser.util:Lorg/bouncycastle/tsp/cms/TimeStampDataUtil;
aload 1
aload 2
aload 3
invokevirtual org.bouncycastle.tsp.cms.TimeStampDataUtil.validate:(Lorg/bouncycastle/operator/DigestCalculatorProvider;[BLorg/bouncycastle/tsp/TimeStampToken;)V
2: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/bouncycastle/tsp/cms/CMSTimeStampedDataParser;
0 3 1 calculatorProvider Lorg/bouncycastle/operator/DigestCalculatorProvider;
0 3 2 dataDigest [B
0 3 3 timeStampToken Lorg/bouncycastle/tsp/TimeStampToken;
Exceptions:
throws org.bouncycastle.tsp.cms.ImprintDigestInvalidException, org.bouncycastle.cms.CMSException
MethodParameters:
Name Flags
calculatorProvider
dataDigest
timeStampToken
private void parseTimeStamps();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=2, args_size=1
start local 0 0: aload 0
getfield org.bouncycastle.tsp.cms.CMSTimeStampedDataParser.util:Lorg/bouncycastle/tsp/cms/TimeStampDataUtil;
ifnonnull 8
1: aload 0
invokevirtual org.bouncycastle.tsp.cms.CMSTimeStampedDataParser.getContent:()Ljava/io/InputStream;
astore 1
start local 1 2: aload 1
ifnull 4
3: aload 1
invokestatic org.bouncycastle.util.io.Streams.drain:(Ljava/io/InputStream;)V
4: StackMap locals: java.io.InputStream
StackMap stack:
aload 0
new org.bouncycastle.tsp.cms.TimeStampDataUtil
dup
aload 0
getfield org.bouncycastle.tsp.cms.CMSTimeStampedDataParser.timeStampedData:Lorg/bouncycastle/asn1/cms/TimeStampedDataParser;
invokespecial org.bouncycastle.tsp.cms.TimeStampDataUtil.<init>:(Lorg/bouncycastle/asn1/cms/TimeStampedDataParser;)V
putfield org.bouncycastle.tsp.cms.CMSTimeStampedDataParser.util:Lorg/bouncycastle/tsp/cms/TimeStampDataUtil;
end local 1 5: goto 8
6: StackMap locals: org.bouncycastle.tsp.cms.CMSTimeStampedDataParser
StackMap stack: java.io.IOException
astore 1
start local 1 7: new org.bouncycastle.cms.CMSException
dup
new java.lang.StringBuilder
dup
ldc "unable to parse evidence block: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.io.IOException.getMessage:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 1
invokespecial org.bouncycastle.cms.CMSException.<init>:(Ljava/lang/String;Ljava/lang/Exception;)V
athrow
end local 1 8: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/bouncycastle/tsp/cms/CMSTimeStampedDataParser;
2 5 1 cont Ljava/io/InputStream;
7 8 1 e Ljava/io/IOException;
Exception table:
from to target type
0 5 6 Class java.io.IOException
Exceptions:
throws org.bouncycastle.cms.CMSException
}
SourceFile: "CMSTimeStampedDataParser.java"