public class org.eclipse.jetty.util.security.Constraint implements java.lang.Cloneable, java.io.Serializable
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.eclipse.jetty.util.security.Constraint
super_class: java.lang.Object
{
public static final java.lang.String __BASIC_AUTH;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "BASIC"
public static final java.lang.String __FORM_AUTH;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "FORM"
public static final java.lang.String __DIGEST_AUTH;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "DIGEST"
public static final java.lang.String __CERT_AUTH;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "CLIENT_CERT"
public static final java.lang.String __CERT_AUTH2;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "CLIENT-CERT"
public static final java.lang.String __SPNEGO_AUTH;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "SPNEGO"
public static final java.lang.String __NEGOTIATE_AUTH;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "NEGOTIATE"
public static final int DC_UNSET;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: -1
public static final int DC_NONE;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 0
public static final int DC_INTEGRAL;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 1
public static final int DC_CONFIDENTIAL;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 2
public static final int DC_FORBIDDEN;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 3
public static final java.lang.String NONE;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "NONE"
public static final java.lang.String ANY_ROLE;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "*"
public static final java.lang.String ANY_AUTH;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "**"
private java.lang.String _name;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private java.lang.String[] _roles;
descriptor: [Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private int _dataConstraint;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private boolean _anyRole;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private boolean _anyAuth;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private boolean _authenticate;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
public static boolean validateMethod(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
ifnonnull 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.lang.String.trim:()Ljava/lang/String;
astore 0
3: aload 0
ldc "FORM"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 11
4: aload 0
ldc "BASIC"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 11
5: aload 0
ldc "DIGEST"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 11
6: aload 0
ldc "CLIENT_CERT"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 11
7: aload 0
ldc "CLIENT-CERT"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 11
8: aload 0
ldc "SPNEGO"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 11
9: aload 0
ldc "NEGOTIATE"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 11
10: iconst_0
ireturn
StackMap locals:
StackMap stack:
11: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 method Ljava/lang/String;
MethodParameters:
Name Flags
method
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iconst_m1
putfield org.eclipse.jetty.util.security.Constraint._dataConstraint:I
2: aload 0
iconst_0
putfield org.eclipse.jetty.util.security.Constraint._anyRole:Z
3: aload 0
iconst_0
putfield org.eclipse.jetty.util.security.Constraint._anyAuth:Z
4: aload 0
iconst_0
putfield org.eclipse.jetty.util.security.Constraint._authenticate:Z
5: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/eclipse/jetty/util/security/Constraint;
public void <init>(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iconst_m1
putfield org.eclipse.jetty.util.security.Constraint._dataConstraint:I
2: aload 0
iconst_0
putfield org.eclipse.jetty.util.security.Constraint._anyRole:Z
3: aload 0
iconst_0
putfield org.eclipse.jetty.util.security.Constraint._anyAuth:Z
4: aload 0
iconst_0
putfield org.eclipse.jetty.util.security.Constraint._authenticate:Z
5: aload 0
aload 1
invokevirtual org.eclipse.jetty.util.security.Constraint.setName:(Ljava/lang/String;)V
6: aload 0
iconst_1
anewarray java.lang.String
dup
iconst_0
aload 2
aastore
invokevirtual org.eclipse.jetty.util.security.Constraint.setRoles:([Ljava/lang/String;)V
7: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/eclipse/jetty/util/security/Constraint;
0 8 1 name Ljava/lang/String;
0 8 2 role Ljava/lang/String;
MethodParameters:
Name Flags
name
role
public java.lang.Object clone();
descriptor: ()Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.clone:()Ljava/lang/Object;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/eclipse/jetty/util/security/Constraint;
Exceptions:
throws java.lang.CloneNotSupportedException
public void setName(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield org.eclipse.jetty.util.security.Constraint._name:Ljava/lang/String;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/eclipse/jetty/util/security/Constraint;
0 2 1 name Ljava/lang/String;
MethodParameters:
Name Flags
name
public java.lang.String getName();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.eclipse.jetty.util.security.Constraint._name:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/eclipse/jetty/util/security/Constraint;
public void setRoles(java.lang.String[]);
descriptor: ([Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield org.eclipse.jetty.util.security.Constraint._roles:[Ljava/lang/String;
1: aload 0
iconst_0
putfield org.eclipse.jetty.util.security.Constraint._anyRole:Z
2: aload 0
iconst_0
putfield org.eclipse.jetty.util.security.Constraint._anyAuth:Z
3: aload 1
ifnull 9
4: aload 1
arraylength
istore 2
start local 2 5: goto 8
6: StackMap locals: int
StackMap stack:
aload 0
dup
getfield org.eclipse.jetty.util.security.Constraint._anyRole:Z
ldc "*"
aload 1
iload 2
aaload
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ior
putfield org.eclipse.jetty.util.security.Constraint._anyRole:Z
7: aload 0
dup
getfield org.eclipse.jetty.util.security.Constraint._anyAuth:Z
ldc "**"
aload 1
iload 2
aaload
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ior
putfield org.eclipse.jetty.util.security.Constraint._anyAuth:Z
8: StackMap locals:
StackMap stack:
iload 2
iinc 2 -1
ifgt 6
end local 2 9: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/eclipse/jetty/util/security/Constraint;
0 10 1 roles [Ljava/lang/String;
5 9 2 i I
MethodParameters:
Name Flags
roles
public boolean isAnyRole();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.eclipse.jetty.util.security.Constraint._anyRole:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/eclipse/jetty/util/security/Constraint;
public boolean isAnyAuth();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.eclipse.jetty.util.security.Constraint._anyAuth:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/eclipse/jetty/util/security/Constraint;
public java.lang.String[] getRoles();
descriptor: ()[Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.eclipse.jetty.util.security.Constraint._roles:[Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/eclipse/jetty/util/security/Constraint;
public boolean hasRole(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield org.eclipse.jetty.util.security.Constraint._anyRole:Z
ifeq 2
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack:
aload 0
getfield org.eclipse.jetty.util.security.Constraint._roles:[Ljava/lang/String;
ifnull 8
3: aload 0
getfield org.eclipse.jetty.util.security.Constraint._roles:[Ljava/lang/String;
arraylength
istore 2
start local 2 4: goto 7
5: StackMap locals: int
StackMap stack:
aload 1
aload 0
getfield org.eclipse.jetty.util.security.Constraint._roles:[Ljava/lang/String;
iload 2
aaload
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 7
6: iconst_1
ireturn
7: StackMap locals:
StackMap stack:
iload 2
iinc 2 -1
ifgt 5
end local 2 8: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/eclipse/jetty/util/security/Constraint;
0 9 1 role Ljava/lang/String;
4 8 2 i I
MethodParameters:
Name Flags
role
public void setAuthenticate(boolean);
descriptor: (Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
putfield org.eclipse.jetty.util.security.Constraint._authenticate:Z
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/eclipse/jetty/util/security/Constraint;
0 2 1 authenticate Z
MethodParameters:
Name Flags
authenticate
public boolean getAuthenticate();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.eclipse.jetty.util.security.Constraint._authenticate:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/eclipse/jetty/util/security/Constraint;
public boolean isForbidden();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.eclipse.jetty.util.security.Constraint._authenticate:Z
ifeq 2
aload 0
getfield org.eclipse.jetty.util.security.Constraint._anyRole:Z
ifne 2
aload 0
getfield org.eclipse.jetty.util.security.Constraint._roles:[Ljava/lang/String;
ifnull 1
aload 0
getfield org.eclipse.jetty.util.security.Constraint._roles:[Ljava/lang/String;
arraylength
ifne 2
StackMap locals:
StackMap stack:
1: iconst_1
ireturn
StackMap locals:
StackMap stack:
2: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/eclipse/jetty/util/security/Constraint;
public void setDataConstraint(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: iload 1
iflt 1
iload 1
iconst_2
if_icmple 2
1: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
ldc "Constraint out of range"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
iload 1
putfield org.eclipse.jetty.util.security.Constraint._dataConstraint:I
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/eclipse/jetty/util/security/Constraint;
0 4 1 c I
MethodParameters:
Name Flags
c
public int getDataConstraint();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.eclipse.jetty.util.security.Constraint._dataConstraint:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/eclipse/jetty/util/security/Constraint;
public boolean hasDataConstraint();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.eclipse.jetty.util.security.Constraint._dataConstraint:I
iflt 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/eclipse/jetty/util/security/Constraint;
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
ldc "SC{"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.eclipse.jetty.util.security.Constraint._name:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
1: ldc ","
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield org.eclipse.jetty.util.security.Constraint._anyRole:Z
ifeq 2
ldc "*"
goto 4
StackMap locals:
StackMap stack: java.lang.StringBuilder
2: aload 0
getfield org.eclipse.jetty.util.security.Constraint._roles:[Ljava/lang/String;
ifnonnull 3
ldc "-"
goto 4
StackMap locals:
StackMap stack: java.lang.StringBuilder
3: aload 0
getfield org.eclipse.jetty.util.security.Constraint._roles:[Ljava/lang/String;
invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
StackMap locals: org.eclipse.jetty.util.security.Constraint
StackMap stack: java.lang.StringBuilder java.lang.String
4: invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
5: ldc ","
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield org.eclipse.jetty.util.security.Constraint._dataConstraint:I
iconst_m1
if_icmpne 6
ldc "DC_UNSET}"
goto 9
StackMap locals:
StackMap stack: java.lang.StringBuilder
6: aload 0
getfield org.eclipse.jetty.util.security.Constraint._dataConstraint:I
ifne 7
ldc "NONE}"
goto 9
StackMap locals:
StackMap stack: java.lang.StringBuilder
7: aload 0
getfield org.eclipse.jetty.util.security.Constraint._dataConstraint:I
iconst_1
if_icmpne 8
ldc "INTEGRAL}"
goto 9
StackMap locals:
StackMap stack: java.lang.StringBuilder
8: ldc "CONFIDENTIAL}"
StackMap locals: org.eclipse.jetty.util.security.Constraint
StackMap stack: java.lang.StringBuilder java.lang.String
9: invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
10: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/eclipse/jetty/util/security/Constraint;
}
SourceFile: "Constraint.java"