public final class javax.security.auth.kerberos.ServicePermission extends java.security.Permission implements java.io.Serializable
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: javax.security.auth.kerberos.ServicePermission
super_class: java.security.Permission
{
private static final long serialVersionUID;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: -1227585031618624935
private static final int INITIATE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 1
private static final int ACCEPT;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 2
private static final int ALL;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 3
private static final int NONE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 0
private transient int mask;
descriptor: I
flags: (0x0082) ACC_PRIVATE, ACC_TRANSIENT
private java.lang.String actions;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
public void <init>(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)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
aload 1
invokespecial java.security.Permission.<init>:(Ljava/lang/String;)V
1: aload 0
aload 1
aload 2
invokestatic javax.security.auth.kerberos.ServicePermission.getMask:(Ljava/lang/String;)I
invokevirtual javax.security.auth.kerberos.ServicePermission.init:(Ljava/lang/String;I)V
2: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljavax/security/auth/kerberos/ServicePermission;
0 3 1 servicePrincipal Ljava/lang/String;
0 3 2 action Ljava/lang/String;
MethodParameters:
Name Flags
servicePrincipal
action
void <init>(java.lang.String, int);
descriptor: (Ljava/lang/String;I)V
flags: (0x0000)
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokespecial java.security.Permission.<init>:(Ljava/lang/String;)V
1: aload 0
aload 1
iload 2
invokevirtual javax.security.auth.kerberos.ServicePermission.init:(Ljava/lang/String;I)V
2: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljavax/security/auth/kerberos/ServicePermission;
0 3 1 servicePrincipal Ljava/lang/String;
0 3 2 mask I
MethodParameters:
Name Flags
servicePrincipal
mask
private void init(java.lang.String, int);
descriptor: (Ljava/lang/String;I)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
ifnonnull 2
1: new java.lang.NullPointerException
dup
ldc "service principal can't be null"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
iload 2
iconst_3
iand
iload 2
if_icmpeq 4
3: new java.lang.IllegalArgumentException
dup
ldc "invalid actions mask"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 0
iload 2
putfield javax.security.auth.kerberos.ServicePermission.mask:I
5: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljavax/security/auth/kerberos/ServicePermission;
0 6 1 servicePrincipal Ljava/lang/String;
0 6 2 mask I
MethodParameters:
Name Flags
servicePrincipal
mask
public boolean implies(java.security.Permission);
descriptor: (Ljava/security/Permission;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 1
instanceof javax.security.auth.kerberos.ServicePermission
ifne 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 1
checkcast javax.security.auth.kerberos.ServicePermission
astore 2
start local 2 3: aload 0
getfield javax.security.auth.kerberos.ServicePermission.mask:I
aload 2
getfield javax.security.auth.kerberos.ServicePermission.mask:I
iand
aload 2
getfield javax.security.auth.kerberos.ServicePermission.mask:I
if_icmpne 6
4: aload 0
aload 2
invokevirtual javax.security.auth.kerberos.ServicePermission.impliesIgnoreMask:(Ljavax/security/auth/kerberos/ServicePermission;)Z
ifeq 6
5: iconst_1
ireturn
StackMap locals: javax.security.auth.kerberos.ServicePermission
StackMap stack:
6: iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljavax/security/auth/kerberos/ServicePermission;
0 7 1 p Ljava/security/Permission;
3 7 2 that Ljavax/security/auth/kerberos/ServicePermission;
MethodParameters:
Name Flags
p
boolean impliesIgnoreMask(javax.security.auth.kerberos.ServicePermission);
descriptor: (Ljavax/security/auth/kerberos/ServicePermission;)Z
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual javax.security.auth.kerberos.ServicePermission.getName:()Ljava/lang/String;
ldc "*"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 5
1: aload 0
invokevirtual javax.security.auth.kerberos.ServicePermission.getName:()Ljava/lang/String;
aload 1
invokevirtual javax.security.auth.kerberos.ServicePermission.getName:()Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 5
2: aload 1
invokevirtual javax.security.auth.kerberos.ServicePermission.getName:()Ljava/lang/String;
ldc "@"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 4
3: aload 0
invokevirtual javax.security.auth.kerberos.ServicePermission.getName:()Ljava/lang/String;
aload 1
invokevirtual javax.security.auth.kerberos.ServicePermission.getName:()Ljava/lang/String;
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifne 5
4: StackMap locals:
StackMap stack:
iconst_0
ireturn
StackMap locals:
StackMap stack:
5: iconst_1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljavax/security/auth/kerberos/ServicePermission;
0 6 1 p Ljavax/security/auth/kerberos/ServicePermission;
MethodParameters:
Name Flags
p
public boolean equals(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 1
aload 0
if_acmpne 2
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack:
aload 1
instanceof javax.security.auth.kerberos.ServicePermission
ifne 4
3: iconst_0
ireturn
4: StackMap locals:
StackMap stack:
aload 1
checkcast javax.security.auth.kerberos.ServicePermission
astore 2
start local 2 5: aload 0
getfield javax.security.auth.kerberos.ServicePermission.mask:I
aload 2
getfield javax.security.auth.kerberos.ServicePermission.mask:I
if_icmpne 8
6: aload 0
invokevirtual javax.security.auth.kerberos.ServicePermission.getName:()Ljava/lang/String;
aload 2
invokevirtual javax.security.auth.kerberos.ServicePermission.getName:()Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 8
7: iconst_1
ireturn
StackMap locals: javax.security.auth.kerberos.ServicePermission
StackMap stack:
8: iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljavax/security/auth/kerberos/ServicePermission;
0 9 1 obj Ljava/lang/Object;
5 9 2 that Ljavax/security/auth/kerberos/ServicePermission;
MethodParameters:
Name Flags
obj
public int hashCode();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual javax.security.auth.kerberos.ServicePermission.getName:()Ljava/lang/String;
invokevirtual java.lang.String.hashCode:()I
aload 0
getfield javax.security.auth.kerberos.ServicePermission.mask:I
ixor
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/security/auth/kerberos/ServicePermission;
static java.lang.String getActions(int);
descriptor: (I)Ljava/lang/String;
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=3, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 1
start local 1 1: iconst_0
istore 2
start local 2 2: iload 0
iconst_1
iand
iconst_1
if_icmpne 6
3: iload 2
ifeq 4
aload 1
bipush 44
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
goto 5
4: StackMap locals: java.lang.StringBuilder int
StackMap stack:
iconst_1
istore 2
5: StackMap locals:
StackMap stack:
aload 1
ldc "initiate"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
6: StackMap locals:
StackMap stack:
iload 0
iconst_2
iand
iconst_2
if_icmpne 10
7: iload 2
ifeq 8
aload 1
bipush 44
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
goto 9
8: StackMap locals:
StackMap stack:
iconst_1
istore 2
9: StackMap locals:
StackMap stack:
aload 1
ldc "accept"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
10: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 mask I
1 11 1 sb Ljava/lang/StringBuilder;
2 11 2 comma Z
MethodParameters:
Name Flags
mask
public java.lang.String getActions();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield javax.security.auth.kerberos.ServicePermission.actions:Ljava/lang/String;
ifnonnull 2
1: aload 0
aload 0
getfield javax.security.auth.kerberos.ServicePermission.mask:I
invokestatic javax.security.auth.kerberos.ServicePermission.getActions:(I)Ljava/lang/String;
putfield javax.security.auth.kerberos.ServicePermission.actions:Ljava/lang/String;
2: StackMap locals:
StackMap stack:
aload 0
getfield javax.security.auth.kerberos.ServicePermission.actions:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljavax/security/auth/kerberos/ServicePermission;
public java.security.PermissionCollection newPermissionCollection();
descriptor: ()Ljava/security/PermissionCollection;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: new javax.security.auth.kerberos.KrbServicePermissionCollection
dup
invokespecial javax.security.auth.kerberos.KrbServicePermissionCollection.<init>:()V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/security/auth/kerberos/ServicePermission;
int getMask();
descriptor: ()I
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield javax.security.auth.kerberos.ServicePermission.mask:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/security/auth/kerberos/ServicePermission;
private static int getMask(java.lang.String);
descriptor: (Ljava/lang/String;)I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=7, args_size=1
start local 0 0: aload 0
ifnonnull 2
1: new java.lang.NullPointerException
dup
ldc "action can't be null"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
ldc ""
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 4
3: new java.lang.IllegalArgumentException
dup
ldc "action can't be empty"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
iconst_0
istore 1
start local 1 5: aload 0
invokevirtual java.lang.String.toCharArray:()[C
astore 2
start local 2 6: aload 2
arraylength
iconst_1
if_icmpne 8
aload 2
iconst_0
caload
bipush 45
if_icmpne 8
7: iload 1
ireturn
8: StackMap locals: int char[]
StackMap stack:
aload 2
arraylength
iconst_1
isub
istore 3
start local 3 9: goto 52
start local 4 10: StackMap locals: int int
StackMap stack:
iinc 3 -1
end local 4 11: StackMap locals:
StackMap stack:
iload 3
iconst_m1
if_icmpeq 17
aload 2
iload 3
caload
dup
istore 4
start local 4 12: bipush 32
if_icmpeq 10
13: iload 4
bipush 13
if_icmpeq 10
14: iload 4
bipush 10
if_icmpeq 10
15: iload 4
bipush 12
if_icmpeq 10
16: iload 4
bipush 9
if_icmpeq 10
end local 4 17: StackMap locals:
StackMap stack:
iload 3
bipush 7
if_icmplt 28
aload 2
iload 3
bipush 7
isub
caload
bipush 105
if_icmpeq 18
aload 2
iload 3
bipush 7
isub
caload
bipush 73
if_icmpne 28
18: StackMap locals:
StackMap stack:
aload 2
iload 3
bipush 6
isub
caload
bipush 110
if_icmpeq 19
aload 2
iload 3
bipush 6
isub
caload
bipush 78
if_icmpne 28
19: StackMap locals:
StackMap stack:
aload 2
iload 3
iconst_5
isub
caload
bipush 105
if_icmpeq 20
aload 2
iload 3
iconst_5
isub
caload
bipush 73
if_icmpne 28
20: StackMap locals:
StackMap stack:
aload 2
iload 3
iconst_4
isub
caload
bipush 116
if_icmpeq 21
aload 2
iload 3
iconst_4
isub
caload
bipush 84
if_icmpne 28
21: StackMap locals:
StackMap stack:
aload 2
iload 3
iconst_3
isub
caload
bipush 105
if_icmpeq 22
aload 2
iload 3
iconst_3
isub
caload
bipush 73
if_icmpne 28
22: StackMap locals:
StackMap stack:
aload 2
iload 3
iconst_2
isub
caload
bipush 97
if_icmpeq 23
aload 2
iload 3
iconst_2
isub
caload
bipush 65
if_icmpne 28
23: StackMap locals:
StackMap stack:
aload 2
iload 3
iconst_1
isub
caload
bipush 116
if_icmpeq 24
aload 2
iload 3
iconst_1
isub
caload
bipush 84
if_icmpne 28
24: StackMap locals:
StackMap stack:
aload 2
iload 3
caload
bipush 101
if_icmpeq 25
aload 2
iload 3
caload
bipush 69
if_icmpne 28
25: StackMap locals:
StackMap stack:
bipush 8
istore 5
start local 5 26: iload 1
iconst_1
ior
istore 1
27: goto 40
end local 5 StackMap locals:
StackMap stack:
28: iload 3
iconst_5
if_icmplt 37
aload 2
iload 3
iconst_5
isub
caload
bipush 97
if_icmpeq 29
aload 2
iload 3
iconst_5
isub
caload
bipush 65
if_icmpne 37
29: StackMap locals:
StackMap stack:
aload 2
iload 3
iconst_4
isub
caload
bipush 99
if_icmpeq 30
aload 2
iload 3
iconst_4
isub
caload
bipush 67
if_icmpne 37
30: StackMap locals:
StackMap stack:
aload 2
iload 3
iconst_3
isub
caload
bipush 99
if_icmpeq 31
aload 2
iload 3
iconst_3
isub
caload
bipush 67
if_icmpne 37
31: StackMap locals:
StackMap stack:
aload 2
iload 3
iconst_2
isub
caload
bipush 101
if_icmpeq 32
aload 2
iload 3
iconst_2
isub
caload
bipush 69
if_icmpne 37
32: StackMap locals:
StackMap stack:
aload 2
iload 3
iconst_1
isub
caload
bipush 112
if_icmpeq 33
aload 2
iload 3
iconst_1
isub
caload
bipush 80
if_icmpne 37
33: StackMap locals:
StackMap stack:
aload 2
iload 3
caload
bipush 116
if_icmpeq 34
aload 2
iload 3
caload
bipush 84
if_icmpne 37
34: StackMap locals:
StackMap stack:
bipush 6
istore 5
start local 5 35: iload 1
iconst_2
ior
istore 1
36: goto 40
end local 5 37: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
38: new java.lang.StringBuilder
dup
ldc "invalid permission: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
39: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
start local 5 40: StackMap locals: java.lang.String int char[] int top int
StackMap stack:
iconst_0
istore 6
start local 6 41: goto 50
42: StackMap locals: int
StackMap stack:
aload 2
iload 3
iload 5
isub
caload
lookupswitch { // 6
9: 45
10: 45
12: 45
13: 45
32: 45
44: 43
default: 46
}
43: StackMap locals:
StackMap stack:
iconst_1
istore 6
44: goto 49
45: StackMap locals:
StackMap stack:
goto 49
46: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
47: new java.lang.StringBuilder
dup
ldc "invalid permission: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
48: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
49: StackMap locals:
StackMap stack:
iinc 3 -1
50: StackMap locals:
StackMap stack:
iload 3
iload 5
if_icmplt 51
iload 6
ifeq 42
51: StackMap locals:
StackMap stack:
iload 3
iload 5
isub
istore 3
end local 6 end local 5 52: StackMap locals: java.lang.String int char[] int
StackMap stack:
iload 3
iconst_m1
if_icmpne 11
53: iload 1
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 54 0 action Ljava/lang/String;
5 54 1 mask I
6 54 2 a [C
9 54 3 i I
10 11 4 c C
12 17 4 c C
26 28 5 matchlen I
35 37 5 matchlen I
40 52 5 matchlen I
41 52 6 seencomma Z
MethodParameters:
Name Flags
action
private void writeObject(java.io.ObjectOutputStream);
descriptor: (Ljava/io/ObjectOutputStream;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield javax.security.auth.kerberos.ServicePermission.actions:Ljava/lang/String;
ifnonnull 2
1: aload 0
invokevirtual javax.security.auth.kerberos.ServicePermission.getActions:()Ljava/lang/String;
pop
2: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.io.ObjectOutputStream.defaultWriteObject:()V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljavax/security/auth/kerberos/ServicePermission;
0 4 1 s Ljava/io/ObjectOutputStream;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
s
private void readObject(java.io.ObjectInputStream);
descriptor: (Ljava/io/ObjectInputStream;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.io.ObjectInputStream.defaultReadObject:()V
1: aload 0
aload 0
invokevirtual javax.security.auth.kerberos.ServicePermission.getName:()Ljava/lang/String;
aload 0
getfield javax.security.auth.kerberos.ServicePermission.actions:Ljava/lang/String;
invokestatic javax.security.auth.kerberos.ServicePermission.getMask:(Ljava/lang/String;)I
invokevirtual javax.security.auth.kerberos.ServicePermission.init:(Ljava/lang/String;I)V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljavax/security/auth/kerberos/ServicePermission;
0 3 1 s Ljava/io/ObjectInputStream;
Exceptions:
throws java.io.IOException, java.lang.ClassNotFoundException
MethodParameters:
Name Flags
s
}
SourceFile: "ServicePermission.java"