public class org.bouncycastle.asn1.cms.Time extends org.bouncycastle.asn1.ASN1Object implements org.bouncycastle.asn1.ASN1Choice
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.bouncycastle.asn1.cms.Time
super_class: org.bouncycastle.asn1.ASN1Object
{
org.bouncycastle.asn1.ASN1Primitive time;
descriptor: Lorg/bouncycastle/asn1/ASN1Primitive;
flags: (0x0000)
public static org.bouncycastle.asn1.cms.Time getInstance(org.bouncycastle.asn1.ASN1TaggedObject, boolean);
descriptor: (Lorg/bouncycastle/asn1/ASN1TaggedObject;Z)Lorg/bouncycastle/asn1/cms/Time;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.bouncycastle.asn1.ASN1TaggedObject.getObject:()Lorg/bouncycastle/asn1/ASN1Primitive;
invokestatic org.bouncycastle.asn1.cms.Time.getInstance:(Ljava/lang/Object;)Lorg/bouncycastle/asn1/cms/Time;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 obj Lorg/bouncycastle/asn1/ASN1TaggedObject;
0 1 1 explicit Z
MethodParameters:
Name Flags
obj
explicit
public void <init>(org.bouncycastle.asn1.ASN1Primitive);
descriptor: (Lorg/bouncycastle/asn1/ASN1Primitive;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial org.bouncycastle.asn1.ASN1Object.<init>:()V
1: aload 1
instanceof org.bouncycastle.asn1.ASN1UTCTime
ifne 4
2: aload 1
instanceof org.bouncycastle.asn1.ASN1GeneralizedTime
ifne 4
3: new java.lang.IllegalArgumentException
dup
ldc "unknown object passed to Time"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals: org.bouncycastle.asn1.cms.Time org.bouncycastle.asn1.ASN1Primitive
StackMap stack:
aload 0
aload 1
putfield org.bouncycastle.asn1.cms.Time.time:Lorg/bouncycastle/asn1/ASN1Primitive;
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/bouncycastle/asn1/cms/Time;
0 6 1 time Lorg/bouncycastle/asn1/ASN1Primitive;
MethodParameters:
Name Flags
time
public void <init>(java.util.Date);
descriptor: (Ljava/util/Date;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=6, args_size=2
start local 0 start local 1 0: aload 0
invokespecial org.bouncycastle.asn1.ASN1Object.<init>:()V
1: new java.util.SimpleTimeZone
dup
iconst_0
ldc "Z"
invokespecial java.util.SimpleTimeZone.<init>:(ILjava/lang/String;)V
astore 2
start local 2 2: new java.text.SimpleDateFormat
dup
ldc "yyyyMMddHHmmss"
invokespecial java.text.SimpleDateFormat.<init>:(Ljava/lang/String;)V
astore 3
start local 3 3: aload 3
aload 2
invokevirtual java.text.SimpleDateFormat.setTimeZone:(Ljava/util/TimeZone;)V
4: new java.lang.StringBuilder
dup
aload 3
aload 1
invokevirtual java.text.SimpleDateFormat.format:(Ljava/util/Date;)Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "Z"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 4
start local 4 5: aload 4
iconst_0
iconst_4
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
istore 5
start local 5 6: iload 5
sipush 1950
if_icmplt 7
iload 5
sipush 2049
if_icmple 9
7: StackMap locals: org.bouncycastle.asn1.cms.Time java.util.Date java.util.SimpleTimeZone java.text.SimpleDateFormat java.lang.String int
StackMap stack:
aload 0
new org.bouncycastle.asn1.DERGeneralizedTime
dup
aload 4
invokespecial org.bouncycastle.asn1.DERGeneralizedTime.<init>:(Ljava/lang/String;)V
putfield org.bouncycastle.asn1.cms.Time.time:Lorg/bouncycastle/asn1/ASN1Primitive;
8: goto 10
9: StackMap locals:
StackMap stack:
aload 0
new org.bouncycastle.asn1.DERUTCTime
dup
aload 4
iconst_2
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
invokespecial org.bouncycastle.asn1.DERUTCTime.<init>:(Ljava/lang/String;)V
putfield org.bouncycastle.asn1.cms.Time.time:Lorg/bouncycastle/asn1/ASN1Primitive;
10: StackMap locals:
StackMap stack:
return
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 11 0 this Lorg/bouncycastle/asn1/cms/Time;
0 11 1 time Ljava/util/Date;
2 11 2 tz Ljava/util/SimpleTimeZone;
3 11 3 dateF Ljava/text/SimpleDateFormat;
5 11 4 d Ljava/lang/String;
6 11 5 year I
MethodParameters:
Name Flags
time
public void <init>(java.util.Date, java.util.Locale);
descriptor: (Ljava/util/Date;Ljava/util/Locale;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=7, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial org.bouncycastle.asn1.ASN1Object.<init>:()V
1: new java.util.SimpleTimeZone
dup
iconst_0
ldc "Z"
invokespecial java.util.SimpleTimeZone.<init>:(ILjava/lang/String;)V
astore 3
start local 3 2: new java.text.SimpleDateFormat
dup
ldc "yyyyMMddHHmmss"
aload 2
invokespecial java.text.SimpleDateFormat.<init>:(Ljava/lang/String;Ljava/util/Locale;)V
astore 4
start local 4 3: aload 4
aload 3
invokevirtual java.text.SimpleDateFormat.setTimeZone:(Ljava/util/TimeZone;)V
4: new java.lang.StringBuilder
dup
aload 4
aload 1
invokevirtual java.text.SimpleDateFormat.format:(Ljava/util/Date;)Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "Z"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 5
start local 5 5: aload 5
iconst_0
iconst_4
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
istore 6
start local 6 6: iload 6
sipush 1950
if_icmplt 7
iload 6
sipush 2049
if_icmple 9
7: StackMap locals: org.bouncycastle.asn1.cms.Time java.util.Date java.util.Locale java.util.SimpleTimeZone java.text.SimpleDateFormat java.lang.String int
StackMap stack:
aload 0
new org.bouncycastle.asn1.DERGeneralizedTime
dup
aload 5
invokespecial org.bouncycastle.asn1.DERGeneralizedTime.<init>:(Ljava/lang/String;)V
putfield org.bouncycastle.asn1.cms.Time.time:Lorg/bouncycastle/asn1/ASN1Primitive;
8: goto 10
9: StackMap locals:
StackMap stack:
aload 0
new org.bouncycastle.asn1.DERUTCTime
dup
aload 5
iconst_2
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
invokespecial org.bouncycastle.asn1.DERUTCTime.<init>:(Ljava/lang/String;)V
putfield org.bouncycastle.asn1.cms.Time.time:Lorg/bouncycastle/asn1/ASN1Primitive;
10: StackMap locals:
StackMap stack:
return
end local 6 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 11 0 this Lorg/bouncycastle/asn1/cms/Time;
0 11 1 time Ljava/util/Date;
0 11 2 locale Ljava/util/Locale;
2 11 3 tz Ljava/util/SimpleTimeZone;
3 11 4 dateF Ljava/text/SimpleDateFormat;
5 11 5 d Ljava/lang/String;
6 11 6 year I
MethodParameters:
Name Flags
time
locale
public static org.bouncycastle.asn1.cms.Time getInstance(java.lang.Object);
descriptor: (Ljava/lang/Object;)Lorg/bouncycastle/asn1/cms/Time;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
ifnull 1
aload 0
instanceof org.bouncycastle.asn1.cms.Time
ifeq 2
1: StackMap locals:
StackMap stack:
aload 0
checkcast org.bouncycastle.asn1.cms.Time
areturn
2: StackMap locals:
StackMap stack:
aload 0
instanceof org.bouncycastle.asn1.ASN1UTCTime
ifeq 4
3: new org.bouncycastle.asn1.cms.Time
dup
aload 0
checkcast org.bouncycastle.asn1.ASN1UTCTime
invokespecial org.bouncycastle.asn1.cms.Time.<init>:(Lorg/bouncycastle/asn1/ASN1Primitive;)V
areturn
4: StackMap locals:
StackMap stack:
aload 0
instanceof org.bouncycastle.asn1.ASN1GeneralizedTime
ifeq 6
5: new org.bouncycastle.asn1.cms.Time
dup
aload 0
checkcast org.bouncycastle.asn1.ASN1GeneralizedTime
invokespecial org.bouncycastle.asn1.cms.Time.<init>:(Lorg/bouncycastle/asn1/ASN1Primitive;)V
areturn
6: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "unknown object in factory: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getName:()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
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 obj Ljava/lang/Object;
MethodParameters:
Name Flags
obj
public java.lang.String getTime();
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.asn1.cms.Time.time:Lorg/bouncycastle/asn1/ASN1Primitive;
instanceof org.bouncycastle.asn1.ASN1UTCTime
ifeq 2
1: aload 0
getfield org.bouncycastle.asn1.cms.Time.time:Lorg/bouncycastle/asn1/ASN1Primitive;
checkcast org.bouncycastle.asn1.ASN1UTCTime
invokevirtual org.bouncycastle.asn1.ASN1UTCTime.getAdjustedTime:()Ljava/lang/String;
areturn
2: StackMap locals:
StackMap stack:
aload 0
getfield org.bouncycastle.asn1.cms.Time.time:Lorg/bouncycastle/asn1/ASN1Primitive;
checkcast org.bouncycastle.asn1.ASN1GeneralizedTime
invokevirtual org.bouncycastle.asn1.ASN1GeneralizedTime.getTime:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/bouncycastle/asn1/cms/Time;
public java.util.Date getDate();
descriptor: ()Ljava/util/Date;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: aload 0
getfield org.bouncycastle.asn1.cms.Time.time:Lorg/bouncycastle/asn1/ASN1Primitive;
instanceof org.bouncycastle.asn1.ASN1UTCTime
ifeq 3
1: aload 0
getfield org.bouncycastle.asn1.cms.Time.time:Lorg/bouncycastle/asn1/ASN1Primitive;
checkcast org.bouncycastle.asn1.ASN1UTCTime
invokevirtual org.bouncycastle.asn1.ASN1UTCTime.getAdjustedDate:()Ljava/util/Date;
2: areturn
3: StackMap locals:
StackMap stack:
aload 0
getfield org.bouncycastle.asn1.cms.Time.time:Lorg/bouncycastle/asn1/ASN1Primitive;
checkcast org.bouncycastle.asn1.ASN1GeneralizedTime
invokevirtual org.bouncycastle.asn1.ASN1GeneralizedTime.getDate:()Ljava/util/Date;
4: areturn
5: StackMap locals:
StackMap stack: java.text.ParseException
astore 1
start local 1 6: new java.lang.IllegalStateException
dup
new java.lang.StringBuilder
dup
ldc "invalid date string: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.text.ParseException.getMessage:()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.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/bouncycastle/asn1/cms/Time;
6 7 1 e Ljava/text/ParseException;
Exception table:
from to target type
0 2 5 Class java.text.ParseException
3 4 5 Class java.text.ParseException
public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive();
descriptor: ()Lorg/bouncycastle/asn1/ASN1Primitive;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.bouncycastle.asn1.cms.Time.time:Lorg/bouncycastle/asn1/ASN1Primitive;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/asn1/cms/Time;
}
SourceFile: "Time.java"