class org.bouncycastle.tsp.cms.TimeStampDataUtil
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.bouncycastle.tsp.cms.TimeStampDataUtil
super_class: java.lang.Object
{
private final org.bouncycastle.asn1.cms.TimeStampAndCRL[] timeStamps;
descriptor: [Lorg/bouncycastle/asn1/cms/TimeStampAndCRL;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final org.bouncycastle.tsp.cms.MetaDataUtil metaDataUtil;
descriptor: Lorg/bouncycastle/tsp/cms/MetaDataUtil;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
void <init>(org.bouncycastle.asn1.cms.TimeStampedData);
descriptor: (Lorg/bouncycastle/asn1/cms/TimeStampedData;)V
flags: (0x0000)
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new org.bouncycastle.tsp.cms.MetaDataUtil
dup
aload 1
invokevirtual org.bouncycastle.asn1.cms.TimeStampedData.getMetaData:()Lorg/bouncycastle/asn1/cms/MetaData;
invokespecial org.bouncycastle.tsp.cms.MetaDataUtil.<init>:(Lorg/bouncycastle/asn1/cms/MetaData;)V
putfield org.bouncycastle.tsp.cms.TimeStampDataUtil.metaDataUtil:Lorg/bouncycastle/tsp/cms/MetaDataUtil;
2: aload 1
invokevirtual org.bouncycastle.asn1.cms.TimeStampedData.getTemporalEvidence:()Lorg/bouncycastle/asn1/cms/Evidence;
astore 2
start local 2 3: aload 0
aload 2
invokevirtual org.bouncycastle.asn1.cms.Evidence.getTstEvidence:()Lorg/bouncycastle/asn1/cms/TimeStampTokenEvidence;
invokevirtual org.bouncycastle.asn1.cms.TimeStampTokenEvidence.toTimeStampAndCRLArray:()[Lorg/bouncycastle/asn1/cms/TimeStampAndCRL;
putfield org.bouncycastle.tsp.cms.TimeStampDataUtil.timeStamps:[Lorg/bouncycastle/asn1/cms/TimeStampAndCRL;
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/bouncycastle/tsp/cms/TimeStampDataUtil;
0 5 1 timeStampedData Lorg/bouncycastle/asn1/cms/TimeStampedData;
3 5 2 evidence Lorg/bouncycastle/asn1/cms/Evidence;
MethodParameters:
Name Flags
timeStampedData
void <init>(org.bouncycastle.asn1.cms.TimeStampedDataParser);
descriptor: (Lorg/bouncycastle/asn1/cms/TimeStampedDataParser;)V
flags: (0x0000)
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new org.bouncycastle.tsp.cms.MetaDataUtil
dup
aload 1
invokevirtual org.bouncycastle.asn1.cms.TimeStampedDataParser.getMetaData:()Lorg/bouncycastle/asn1/cms/MetaData;
invokespecial org.bouncycastle.tsp.cms.MetaDataUtil.<init>:(Lorg/bouncycastle/asn1/cms/MetaData;)V
putfield org.bouncycastle.tsp.cms.TimeStampDataUtil.metaDataUtil:Lorg/bouncycastle/tsp/cms/MetaDataUtil;
2: aload 1
invokevirtual org.bouncycastle.asn1.cms.TimeStampedDataParser.getTemporalEvidence:()Lorg/bouncycastle/asn1/cms/Evidence;
astore 2
start local 2 3: aload 0
aload 2
invokevirtual org.bouncycastle.asn1.cms.Evidence.getTstEvidence:()Lorg/bouncycastle/asn1/cms/TimeStampTokenEvidence;
invokevirtual org.bouncycastle.asn1.cms.TimeStampTokenEvidence.toTimeStampAndCRLArray:()[Lorg/bouncycastle/asn1/cms/TimeStampAndCRL;
putfield org.bouncycastle.tsp.cms.TimeStampDataUtil.timeStamps:[Lorg/bouncycastle/asn1/cms/TimeStampAndCRL;
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/bouncycastle/tsp/cms/TimeStampDataUtil;
0 5 1 timeStampedData Lorg/bouncycastle/asn1/cms/TimeStampedDataParser;
3 5 2 evidence Lorg/bouncycastle/asn1/cms/Evidence;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
timeStampedData
org.bouncycastle.tsp.TimeStampToken getTimeStampToken(org.bouncycastle.asn1.cms.TimeStampAndCRL);
descriptor: (Lorg/bouncycastle/asn1/cms/TimeStampAndCRL;)Lorg/bouncycastle/tsp/TimeStampToken;
flags: (0x0000)
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual org.bouncycastle.asn1.cms.TimeStampAndCRL.getTimeStampToken:()Lorg/bouncycastle/asn1/cms/ContentInfo;
astore 2
start local 2 1: new org.bouncycastle.tsp.TimeStampToken
dup
aload 2
invokespecial org.bouncycastle.tsp.TimeStampToken.<init>:(Lorg/bouncycastle/asn1/cms/ContentInfo;)V
astore 3
start local 3 2: aload 3
3: areturn
end local 3 4: StackMap locals: org.bouncycastle.tsp.cms.TimeStampDataUtil org.bouncycastle.asn1.cms.TimeStampAndCRL org.bouncycastle.asn1.cms.ContentInfo
StackMap stack: java.io.IOException
astore 3
start local 3 5: new org.bouncycastle.cms.CMSException
dup
new java.lang.StringBuilder
dup
ldc "unable to parse token data: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
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 3
invokespecial org.bouncycastle.cms.CMSException.<init>:(Ljava/lang/String;Ljava/lang/Exception;)V
athrow
end local 3 6: StackMap locals:
StackMap stack: org.bouncycastle.tsp.TSPException
astore 3
start local 3 7: aload 3
invokevirtual org.bouncycastle.tsp.TSPException.getCause:()Ljava/lang/Throwable;
instanceof org.bouncycastle.cms.CMSException
ifeq 9
8: aload 3
invokevirtual org.bouncycastle.tsp.TSPException.getCause:()Ljava/lang/Throwable;
checkcast org.bouncycastle.cms.CMSException
athrow
9: StackMap locals: org.bouncycastle.tsp.TSPException
StackMap stack:
new org.bouncycastle.cms.CMSException
dup
new java.lang.StringBuilder
dup
ldc "token data invalid: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual org.bouncycastle.tsp.TSPException.getMessage:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 3
invokespecial org.bouncycastle.cms.CMSException.<init>:(Ljava/lang/String;Ljava/lang/Exception;)V
athrow
end local 3 10: StackMap locals: org.bouncycastle.tsp.cms.TimeStampDataUtil org.bouncycastle.asn1.cms.TimeStampAndCRL org.bouncycastle.asn1.cms.ContentInfo
StackMap stack: java.lang.IllegalArgumentException
astore 3
start local 3 11: new org.bouncycastle.cms.CMSException
dup
new java.lang.StringBuilder
dup
ldc "token data invalid: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.lang.IllegalArgumentException.getMessage:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 3
invokespecial org.bouncycastle.cms.CMSException.<init>:(Ljava/lang/String;Ljava/lang/Exception;)V
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lorg/bouncycastle/tsp/cms/TimeStampDataUtil;
0 12 1 timeStampAndCRL Lorg/bouncycastle/asn1/cms/TimeStampAndCRL;
1 12 2 timeStampToken Lorg/bouncycastle/asn1/cms/ContentInfo;
2 4 3 token Lorg/bouncycastle/tsp/TimeStampToken;
5 6 3 e Ljava/io/IOException;
7 10 3 e Lorg/bouncycastle/tsp/TSPException;
11 12 3 e Ljava/lang/IllegalArgumentException;
Exception table:
from to target type
1 3 4 Class java.io.IOException
1 3 6 Class org.bouncycastle.tsp.TSPException
1 3 10 Class java.lang.IllegalArgumentException
Exceptions:
throws org.bouncycastle.cms.CMSException
MethodParameters:
Name Flags
timeStampAndCRL
void initialiseMessageImprintDigestCalculator(org.bouncycastle.operator.DigestCalculator);
descriptor: (Lorg/bouncycastle/operator/DigestCalculator;)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.bouncycastle.tsp.cms.TimeStampDataUtil.metaDataUtil:Lorg/bouncycastle/tsp/cms/MetaDataUtil;
aload 1
invokevirtual org.bouncycastle.tsp.cms.MetaDataUtil.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/TimeStampDataUtil;
0 2 1 calculator Lorg/bouncycastle/operator/DigestCalculator;
Exceptions:
throws org.bouncycastle.cms.CMSException
MethodParameters:
Name Flags
calculator
org.bouncycastle.operator.DigestCalculator getMessageImprintDigestCalculator(org.bouncycastle.operator.DigestCalculatorProvider);
descriptor: (Lorg/bouncycastle/operator/DigestCalculatorProvider;)Lorg/bouncycastle/operator/DigestCalculator;
flags: (0x0000)
Code:
stack=5, locals=6, args_size=2
start local 0 start local 1 0: aload 0
aload 0
getfield org.bouncycastle.tsp.cms.TimeStampDataUtil.timeStamps:[Lorg/bouncycastle/asn1/cms/TimeStampAndCRL;
iconst_0
aaload
invokevirtual org.bouncycastle.tsp.cms.TimeStampDataUtil.getTimeStampToken:(Lorg/bouncycastle/asn1/cms/TimeStampAndCRL;)Lorg/bouncycastle/tsp/TimeStampToken;
astore 2
start local 2 1: aload 2
invokevirtual org.bouncycastle.tsp.TimeStampToken.getTimeStampInfo:()Lorg/bouncycastle/tsp/TimeStampTokenInfo;
astore 3
start local 3 2: aload 3
invokevirtual org.bouncycastle.tsp.TimeStampTokenInfo.getMessageImprintAlgOID:()Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
astore 4
start local 4 3: aload 1
new org.bouncycastle.asn1.x509.AlgorithmIdentifier
dup
aload 4
invokespecial org.bouncycastle.asn1.x509.AlgorithmIdentifier.<init>:(Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;)V
invokeinterface org.bouncycastle.operator.DigestCalculatorProvider.get:(Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;)Lorg/bouncycastle/operator/DigestCalculator;
astore 5
start local 5 4: aload 0
aload 5
invokevirtual org.bouncycastle.tsp.cms.TimeStampDataUtil.initialiseMessageImprintDigestCalculator:(Lorg/bouncycastle/operator/DigestCalculator;)V
5: aload 5
6: areturn
end local 5 end local 4 end local 3 end local 2 7: StackMap locals:
StackMap stack: org.bouncycastle.cms.CMSException
astore 3
start local 3 8: 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 3
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 3
invokespecial org.bouncycastle.operator.OperatorCreationException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/bouncycastle/tsp/cms/TimeStampDataUtil;
0 9 1 calculatorProvider Lorg/bouncycastle/operator/DigestCalculatorProvider;
1 7 2 token Lorg/bouncycastle/tsp/TimeStampToken;
2 7 3 info Lorg/bouncycastle/tsp/TimeStampTokenInfo;
3 7 4 algOID Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
4 7 5 calc Lorg/bouncycastle/operator/DigestCalculator;
8 9 3 e Lorg/bouncycastle/cms/CMSException;
Exception table:
from to target type
0 6 7 Class org.bouncycastle.cms.CMSException
Exceptions:
throws org.bouncycastle.operator.OperatorCreationException
MethodParameters:
Name Flags
calculatorProvider
org.bouncycastle.tsp.TimeStampToken[] getTimeStampTokens();
descriptor: ()[Lorg/bouncycastle/tsp/TimeStampToken;
flags: (0x0000)
Code:
stack=5, locals=3, args_size=1
start local 0 0: aload 0
getfield org.bouncycastle.tsp.cms.TimeStampDataUtil.timeStamps:[Lorg/bouncycastle/asn1/cms/TimeStampAndCRL;
arraylength
anewarray org.bouncycastle.tsp.TimeStampToken
astore 1
start local 1 1: iconst_0
istore 2
start local 2 2: goto 5
3: StackMap locals: org.bouncycastle.tsp.TimeStampToken[] int
StackMap stack:
aload 1
iload 2
aload 0
aload 0
getfield org.bouncycastle.tsp.cms.TimeStampDataUtil.timeStamps:[Lorg/bouncycastle/asn1/cms/TimeStampAndCRL;
iload 2
aaload
invokevirtual org.bouncycastle.tsp.cms.TimeStampDataUtil.getTimeStampToken:(Lorg/bouncycastle/asn1/cms/TimeStampAndCRL;)Lorg/bouncycastle/tsp/TimeStampToken;
aastore
4: iinc 2 1
StackMap locals:
StackMap stack:
5: iload 2
aload 0
getfield org.bouncycastle.tsp.cms.TimeStampDataUtil.timeStamps:[Lorg/bouncycastle/asn1/cms/TimeStampAndCRL;
arraylength
if_icmplt 3
end local 2 6: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/bouncycastle/tsp/cms/TimeStampDataUtil;
1 7 1 tokens [Lorg/bouncycastle/tsp/TimeStampToken;
2 6 2 i I
Exceptions:
throws org.bouncycastle.cms.CMSException
org.bouncycastle.asn1.cms.TimeStampAndCRL[] getTimeStamps();
descriptor: ()[Lorg/bouncycastle/asn1/cms/TimeStampAndCRL;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.bouncycastle.tsp.cms.TimeStampDataUtil.timeStamps:[Lorg/bouncycastle/asn1/cms/TimeStampAndCRL;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/tsp/cms/TimeStampDataUtil;
byte[] calculateNextHash(org.bouncycastle.operator.DigestCalculator);
descriptor: (Lorg/bouncycastle/operator/DigestCalculator;)[B
flags: (0x0000)
Code:
stack=5, locals=5, args_size=2
start local 0 start local 1 0: aload 0
getfield org.bouncycastle.tsp.cms.TimeStampDataUtil.timeStamps:[Lorg/bouncycastle/asn1/cms/TimeStampAndCRL;
aload 0
getfield org.bouncycastle.tsp.cms.TimeStampDataUtil.timeStamps:[Lorg/bouncycastle/asn1/cms/TimeStampAndCRL;
arraylength
iconst_1
isub
aaload
astore 2
start local 2 1: aload 1
invokeinterface org.bouncycastle.operator.DigestCalculator.getOutputStream:()Ljava/io/OutputStream;
astore 3
start local 3 2: aload 3
aload 2
ldc "DER"
invokevirtual org.bouncycastle.asn1.cms.TimeStampAndCRL.getEncoded:(Ljava/lang/String;)[B
invokevirtual java.io.OutputStream.write:([B)V
3: aload 3
invokevirtual java.io.OutputStream.close:()V
4: aload 1
invokeinterface org.bouncycastle.operator.DigestCalculator.getDigest:()[B
5: areturn
6: StackMap locals: org.bouncycastle.tsp.cms.TimeStampDataUtil org.bouncycastle.operator.DigestCalculator org.bouncycastle.asn1.cms.TimeStampAndCRL java.io.OutputStream
StackMap stack: java.io.IOException
astore 4
start local 4 7: new org.bouncycastle.cms.CMSException
dup
new java.lang.StringBuilder
dup
ldc "exception calculating hash: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 4
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 4
invokespecial org.bouncycastle.cms.CMSException.<init>:(Ljava/lang/String;Ljava/lang/Exception;)V
athrow
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/bouncycastle/tsp/cms/TimeStampDataUtil;
0 8 1 calculator Lorg/bouncycastle/operator/DigestCalculator;
1 8 2 tspToken Lorg/bouncycastle/asn1/cms/TimeStampAndCRL;
2 8 3 out Ljava/io/OutputStream;
7 8 4 e Ljava/io/IOException;
Exception table:
from to target type
2 5 6 Class java.io.IOException
Exceptions:
throws org.bouncycastle.cms.CMSException
MethodParameters:
Name Flags
calculator
void validate(org.bouncycastle.operator.DigestCalculatorProvider, byte[]);
descriptor: (Lorg/bouncycastle/operator/DigestCalculatorProvider;[B)V
flags: (0x0000)
Code:
stack=5, locals=8, args_size=3
start local 0 start local 1 start local 2 0: aload 2
astore 3
start local 3 1: iconst_0
istore 4
start local 4 2: goto 16
3: StackMap locals: byte[] int
StackMap stack:
aload 0
aload 0
getfield org.bouncycastle.tsp.cms.TimeStampDataUtil.timeStamps:[Lorg/bouncycastle/asn1/cms/TimeStampAndCRL;
iload 4
aaload
invokevirtual org.bouncycastle.tsp.cms.TimeStampDataUtil.getTimeStampToken:(Lorg/bouncycastle/asn1/cms/TimeStampAndCRL;)Lorg/bouncycastle/tsp/TimeStampToken;
astore 5
start local 5 4: iload 4
ifle 9
5: aload 5
invokevirtual org.bouncycastle.tsp.TimeStampToken.getTimeStampInfo:()Lorg/bouncycastle/tsp/TimeStampTokenInfo;
astore 6
start local 6 6: aload 1
aload 6
invokevirtual org.bouncycastle.tsp.TimeStampTokenInfo.getHashAlgorithm:()Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;
invokeinterface org.bouncycastle.operator.DigestCalculatorProvider.get:(Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;)Lorg/bouncycastle/operator/DigestCalculator;
astore 7
start local 7 7: aload 7
invokeinterface org.bouncycastle.operator.DigestCalculator.getOutputStream:()Ljava/io/OutputStream;
aload 0
getfield org.bouncycastle.tsp.cms.TimeStampDataUtil.timeStamps:[Lorg/bouncycastle/asn1/cms/TimeStampAndCRL;
iload 4
iconst_1
isub
aaload
ldc "DER"
invokevirtual org.bouncycastle.asn1.cms.TimeStampAndCRL.getEncoded:(Ljava/lang/String;)[B
invokevirtual java.io.OutputStream.write:([B)V
8: aload 7
invokeinterface org.bouncycastle.operator.DigestCalculator.getDigest:()[B
astore 3
end local 7 end local 6 9: StackMap locals: org.bouncycastle.tsp.TimeStampToken
StackMap stack:
aload 0
aload 5
aload 3
invokevirtual org.bouncycastle.tsp.cms.TimeStampDataUtil.compareDigest:(Lorg/bouncycastle/tsp/TimeStampToken;[B)V
end local 5 10: goto 15
11: StackMap locals: org.bouncycastle.tsp.cms.TimeStampDataUtil org.bouncycastle.operator.DigestCalculatorProvider byte[] byte[] int
StackMap stack: java.io.IOException
astore 5
start local 5 12: new org.bouncycastle.cms.CMSException
dup
new java.lang.StringBuilder
dup
ldc "exception calculating hash: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 5
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 5
invokespecial org.bouncycastle.cms.CMSException.<init>:(Ljava/lang/String;Ljava/lang/Exception;)V
athrow
end local 5 13: StackMap locals:
StackMap stack: org.bouncycastle.operator.OperatorCreationException
astore 5
start local 5 14: new org.bouncycastle.cms.CMSException
dup
new java.lang.StringBuilder
dup
ldc "cannot create digest: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 5
invokevirtual org.bouncycastle.operator.OperatorCreationException.getMessage:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 5
invokespecial org.bouncycastle.cms.CMSException.<init>:(Ljava/lang/String;Ljava/lang/Exception;)V
athrow
end local 5 15: StackMap locals:
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
16: iload 4
aload 0
getfield org.bouncycastle.tsp.cms.TimeStampDataUtil.timeStamps:[Lorg/bouncycastle/asn1/cms/TimeStampAndCRL;
arraylength
if_icmplt 3
end local 4 17: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Lorg/bouncycastle/tsp/cms/TimeStampDataUtil;
0 18 1 calculatorProvider Lorg/bouncycastle/operator/DigestCalculatorProvider;
0 18 2 dataDigest [B
1 18 3 currentDigest [B
2 17 4 i I
4 10 5 token Lorg/bouncycastle/tsp/TimeStampToken;
6 9 6 info Lorg/bouncycastle/tsp/TimeStampTokenInfo;
7 9 7 calculator Lorg/bouncycastle/operator/DigestCalculator;
12 13 5 e Ljava/io/IOException;
14 15 5 e Lorg/bouncycastle/operator/OperatorCreationException;
Exception table:
from to target type
3 10 11 Class java.io.IOException
3 10 13 Class org.bouncycastle.operator.OperatorCreationException
Exceptions:
throws org.bouncycastle.tsp.cms.ImprintDigestInvalidException, org.bouncycastle.cms.CMSException
MethodParameters:
Name Flags
calculatorProvider
dataDigest
void validate(org.bouncycastle.operator.DigestCalculatorProvider, byte[], org.bouncycastle.tsp.TimeStampToken);
descriptor: (Lorg/bouncycastle/operator/DigestCalculatorProvider;[BLorg/bouncycastle/tsp/TimeStampToken;)V
flags: (0x0000)
Code:
stack=5, locals=10, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 2
astore 4
start local 4 1: aload 3
invokevirtual org.bouncycastle.tsp.TimeStampToken.getEncoded:()[B
astore 5
start local 5 2: goto 5
end local 5 3: StackMap locals: org.bouncycastle.tsp.cms.TimeStampDataUtil org.bouncycastle.operator.DigestCalculatorProvider byte[] org.bouncycastle.tsp.TimeStampToken byte[]
StackMap stack: java.io.IOException
astore 6
start local 6 4: new org.bouncycastle.cms.CMSException
dup
new java.lang.StringBuilder
dup
ldc "exception encoding timeStampToken: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 6
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 6
invokespecial org.bouncycastle.cms.CMSException.<init>:(Ljava/lang/String;Ljava/lang/Exception;)V
athrow
end local 6 start local 5 5: StackMap locals: byte[]
StackMap stack:
iconst_0
istore 6
start local 6 6: goto 21
7: StackMap locals: int
StackMap stack:
aload 0
aload 0
getfield org.bouncycastle.tsp.cms.TimeStampDataUtil.timeStamps:[Lorg/bouncycastle/asn1/cms/TimeStampAndCRL;
iload 6
aaload
invokevirtual org.bouncycastle.tsp.cms.TimeStampDataUtil.getTimeStampToken:(Lorg/bouncycastle/asn1/cms/TimeStampAndCRL;)Lorg/bouncycastle/tsp/TimeStampToken;
astore 7
start local 7 8: iload 6
ifle 13
9: aload 7
invokevirtual org.bouncycastle.tsp.TimeStampToken.getTimeStampInfo:()Lorg/bouncycastle/tsp/TimeStampTokenInfo;
astore 8
start local 8 10: aload 1
aload 8
invokevirtual org.bouncycastle.tsp.TimeStampTokenInfo.getHashAlgorithm:()Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;
invokeinterface org.bouncycastle.operator.DigestCalculatorProvider.get:(Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;)Lorg/bouncycastle/operator/DigestCalculator;
astore 9
start local 9 11: aload 9
invokeinterface org.bouncycastle.operator.DigestCalculator.getOutputStream:()Ljava/io/OutputStream;
aload 0
getfield org.bouncycastle.tsp.cms.TimeStampDataUtil.timeStamps:[Lorg/bouncycastle/asn1/cms/TimeStampAndCRL;
iload 6
iconst_1
isub
aaload
ldc "DER"
invokevirtual org.bouncycastle.asn1.cms.TimeStampAndCRL.getEncoded:(Ljava/lang/String;)[B
invokevirtual java.io.OutputStream.write:([B)V
12: aload 9
invokeinterface org.bouncycastle.operator.DigestCalculator.getDigest:()[B
astore 4
end local 9 end local 8 13: StackMap locals: org.bouncycastle.tsp.TimeStampToken
StackMap stack:
aload 0
aload 7
aload 4
invokevirtual org.bouncycastle.tsp.cms.TimeStampDataUtil.compareDigest:(Lorg/bouncycastle/tsp/TimeStampToken;[B)V
14: aload 7
invokevirtual org.bouncycastle.tsp.TimeStampToken.getEncoded:()[B
aload 5
invokestatic org.bouncycastle.util.Arrays.areEqual:([B[B)Z
ifeq 20
15: return
end local 7 16: StackMap locals: org.bouncycastle.tsp.cms.TimeStampDataUtil org.bouncycastle.operator.DigestCalculatorProvider byte[] org.bouncycastle.tsp.TimeStampToken byte[] byte[] int
StackMap stack: java.io.IOException
astore 7
start local 7 17: new org.bouncycastle.cms.CMSException
dup
new java.lang.StringBuilder
dup
ldc "exception calculating hash: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 7
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 7
invokespecial org.bouncycastle.cms.CMSException.<init>:(Ljava/lang/String;Ljava/lang/Exception;)V
athrow
end local 7 18: StackMap locals:
StackMap stack: org.bouncycastle.operator.OperatorCreationException
astore 7
start local 7 19: new org.bouncycastle.cms.CMSException
dup
new java.lang.StringBuilder
dup
ldc "cannot create digest: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 7
invokevirtual org.bouncycastle.operator.OperatorCreationException.getMessage:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 7
invokespecial org.bouncycastle.cms.CMSException.<init>:(Ljava/lang/String;Ljava/lang/Exception;)V
athrow
end local 7 20: StackMap locals:
StackMap stack:
iinc 6 1
StackMap locals:
StackMap stack:
21: iload 6
aload 0
getfield org.bouncycastle.tsp.cms.TimeStampDataUtil.timeStamps:[Lorg/bouncycastle/asn1/cms/TimeStampAndCRL;
arraylength
if_icmplt 7
end local 6 22: new org.bouncycastle.tsp.cms.ImprintDigestInvalidException
dup
ldc "passed in token not associated with timestamps present"
aload 3
invokespecial org.bouncycastle.tsp.cms.ImprintDigestInvalidException.<init>:(Ljava/lang/String;Lorg/bouncycastle/tsp/TimeStampToken;)V
athrow
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 23 0 this Lorg/bouncycastle/tsp/cms/TimeStampDataUtil;
0 23 1 calculatorProvider Lorg/bouncycastle/operator/DigestCalculatorProvider;
0 23 2 dataDigest [B
0 23 3 timeStampToken Lorg/bouncycastle/tsp/TimeStampToken;
1 23 4 currentDigest [B
2 3 5 encToken [B
5 23 5 encToken [B
4 5 6 e Ljava/io/IOException;
6 22 6 i I
8 16 7 token Lorg/bouncycastle/tsp/TimeStampToken;
10 13 8 info Lorg/bouncycastle/tsp/TimeStampTokenInfo;
11 13 9 calculator Lorg/bouncycastle/operator/DigestCalculator;
17 18 7 e Ljava/io/IOException;
19 20 7 e Lorg/bouncycastle/operator/OperatorCreationException;
Exception table:
from to target type
1 2 3 Class java.io.IOException
7 15 16 Class java.io.IOException
7 15 18 Class org.bouncycastle.operator.OperatorCreationException
Exceptions:
throws org.bouncycastle.tsp.cms.ImprintDigestInvalidException, org.bouncycastle.cms.CMSException
MethodParameters:
Name Flags
calculatorProvider
dataDigest
timeStampToken
private void compareDigest(org.bouncycastle.tsp.TimeStampToken, byte[]);
descriptor: (Lorg/bouncycastle/tsp/TimeStampToken;[B)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokevirtual org.bouncycastle.tsp.TimeStampToken.getTimeStampInfo:()Lorg/bouncycastle/tsp/TimeStampTokenInfo;
astore 3
start local 3 1: aload 3
invokevirtual org.bouncycastle.tsp.TimeStampTokenInfo.getMessageImprintDigest:()[B
astore 4
start local 4 2: aload 2
aload 4
invokestatic org.bouncycastle.util.Arrays.areEqual:([B[B)Z
ifne 4
3: new org.bouncycastle.tsp.cms.ImprintDigestInvalidException
dup
ldc "hash calculated is different from MessageImprintDigest found in TimeStampToken"
aload 1
invokespecial org.bouncycastle.tsp.cms.ImprintDigestInvalidException.<init>:(Ljava/lang/String;Lorg/bouncycastle/tsp/TimeStampToken;)V
athrow
4: StackMap locals: org.bouncycastle.tsp.TimeStampTokenInfo byte[]
StackMap stack:
return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/bouncycastle/tsp/cms/TimeStampDataUtil;
0 5 1 timeStampToken Lorg/bouncycastle/tsp/TimeStampToken;
0 5 2 digest [B
1 5 3 info Lorg/bouncycastle/tsp/TimeStampTokenInfo;
2 5 4 tsrMessageDigest [B
Exceptions:
throws org.bouncycastle.tsp.cms.ImprintDigestInvalidException
MethodParameters:
Name Flags
timeStampToken
digest
java.lang.String getFileName();
descriptor: ()Ljava/lang/String;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.bouncycastle.tsp.cms.TimeStampDataUtil.metaDataUtil:Lorg/bouncycastle/tsp/cms/MetaDataUtil;
invokevirtual org.bouncycastle.tsp.cms.MetaDataUtil.getFileName:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/tsp/cms/TimeStampDataUtil;
java.lang.String getMediaType();
descriptor: ()Ljava/lang/String;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.bouncycastle.tsp.cms.TimeStampDataUtil.metaDataUtil:Lorg/bouncycastle/tsp/cms/MetaDataUtil;
invokevirtual org.bouncycastle.tsp.cms.MetaDataUtil.getMediaType:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/tsp/cms/TimeStampDataUtil;
org.bouncycastle.asn1.cms.AttributeTable getOtherMetaData();
descriptor: ()Lorg/bouncycastle/asn1/cms/AttributeTable;
flags: (0x0000)
Code:
stack=3, locals=1, args_size=1
start local 0 0: new org.bouncycastle.asn1.cms.AttributeTable
dup
aload 0
getfield org.bouncycastle.tsp.cms.TimeStampDataUtil.metaDataUtil:Lorg/bouncycastle/tsp/cms/MetaDataUtil;
invokevirtual org.bouncycastle.tsp.cms.MetaDataUtil.getOtherMetaData:()Lorg/bouncycastle/asn1/cms/Attributes;
invokespecial org.bouncycastle.asn1.cms.AttributeTable.<init>:(Lorg/bouncycastle/asn1/cms/Attributes;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/tsp/cms/TimeStampDataUtil;
}
SourceFile: "TimeStampDataUtil.java"