public class jakarta.servlet.ServletSecurityElement extends jakarta.servlet.HttpConstraintElement
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: jakarta.servlet.ServletSecurityElement
super_class: jakarta.servlet.HttpConstraintElement
{
private java.util.Collection<java.lang.String> methodNames;
descriptor: Ljava/util/Collection;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/Collection<Ljava/lang/String;>;
private java.util.Collection<jakarta.servlet.HttpMethodConstraintElement> methodConstraints;
descriptor: Ljava/util/Collection;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/Collection<Ljakarta/servlet/HttpMethodConstraintElement;>;
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial jakarta.servlet.HttpConstraintElement.<init>:()V
1: aload 0
new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
putfield jakarta.servlet.ServletSecurityElement.methodConstraints:Ljava/util/Collection;
2: aload 0
invokestatic java.util.Collections.emptySet:()Ljava/util/Set;
putfield jakarta.servlet.ServletSecurityElement.methodNames:Ljava/util/Collection;
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljakarta/servlet/ServletSecurityElement;
public void <init>(jakarta.servlet.HttpConstraintElement);
descriptor: (Ljakarta/servlet/HttpConstraintElement;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual jakarta.servlet.HttpConstraintElement.getEmptyRoleSemantic:()Ljakarta/servlet/annotation/ServletSecurity$EmptyRoleSemantic;
aload 1
invokevirtual jakarta.servlet.HttpConstraintElement.getTransportGuarantee:()Ljakarta/servlet/annotation/ServletSecurity$TransportGuarantee;
aload 1
invokevirtual jakarta.servlet.HttpConstraintElement.getRolesAllowed:()[Ljava/lang/String;
invokespecial jakarta.servlet.HttpConstraintElement.<init>:(Ljakarta/servlet/annotation/ServletSecurity$EmptyRoleSemantic;Ljakarta/servlet/annotation/ServletSecurity$TransportGuarantee;[Ljava/lang/String;)V
1: aload 0
new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
putfield jakarta.servlet.ServletSecurityElement.methodConstraints:Ljava/util/Collection;
2: aload 0
invokestatic java.util.Collections.emptySet:()Ljava/util/Set;
putfield jakarta.servlet.ServletSecurityElement.methodNames:Ljava/util/Collection;
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljakarta/servlet/ServletSecurityElement;
0 4 1 constraint Ljakarta/servlet/HttpConstraintElement;
MethodParameters:
Name Flags
constraint
public void <init>(java.util.Collection<jakarta.servlet.HttpMethodConstraintElement>);
descriptor: (Ljava/util/Collection;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial jakarta.servlet.HttpConstraintElement.<init>:()V
1: aload 0
aload 1
ifnonnull 2
new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
goto 3
StackMap locals: jakarta.servlet.ServletSecurityElement java.util.Collection
StackMap stack: jakarta.servlet.ServletSecurityElement
2: aload 1
StackMap locals: jakarta.servlet.ServletSecurityElement java.util.Collection
StackMap stack: jakarta.servlet.ServletSecurityElement java.util.Collection
3: putfield jakarta.servlet.ServletSecurityElement.methodConstraints:Ljava/util/Collection;
4: aload 0
aload 0
aload 0
getfield jakarta.servlet.ServletSecurityElement.methodConstraints:Ljava/util/Collection;
invokevirtual jakarta.servlet.ServletSecurityElement.checkMethodNames:(Ljava/util/Collection;)Ljava/util/Collection;
putfield jakarta.servlet.ServletSecurityElement.methodNames:Ljava/util/Collection;
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljakarta/servlet/ServletSecurityElement;
0 6 1 methodConstraints Ljava/util/Collection<Ljakarta/servlet/HttpMethodConstraintElement;>;
Signature: (Ljava/util/Collection<Ljakarta/servlet/HttpMethodConstraintElement;>;)V
MethodParameters:
Name Flags
methodConstraints
public void <init>(jakarta.servlet.HttpConstraintElement, java.util.Collection<jakarta.servlet.HttpMethodConstraintElement>);
descriptor: (Ljakarta/servlet/HttpConstraintElement;Ljava/util/Collection;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokevirtual jakarta.servlet.HttpConstraintElement.getEmptyRoleSemantic:()Ljakarta/servlet/annotation/ServletSecurity$EmptyRoleSemantic;
aload 1
invokevirtual jakarta.servlet.HttpConstraintElement.getTransportGuarantee:()Ljakarta/servlet/annotation/ServletSecurity$TransportGuarantee;
aload 1
invokevirtual jakarta.servlet.HttpConstraintElement.getRolesAllowed:()[Ljava/lang/String;
invokespecial jakarta.servlet.HttpConstraintElement.<init>:(Ljakarta/servlet/annotation/ServletSecurity$EmptyRoleSemantic;Ljakarta/servlet/annotation/ServletSecurity$TransportGuarantee;[Ljava/lang/String;)V
1: aload 0
aload 2
ifnonnull 2
new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
goto 3
StackMap locals: jakarta.servlet.ServletSecurityElement jakarta.servlet.HttpConstraintElement java.util.Collection
StackMap stack: jakarta.servlet.ServletSecurityElement
2: aload 2
StackMap locals: jakarta.servlet.ServletSecurityElement jakarta.servlet.HttpConstraintElement java.util.Collection
StackMap stack: jakarta.servlet.ServletSecurityElement java.util.Collection
3: putfield jakarta.servlet.ServletSecurityElement.methodConstraints:Ljava/util/Collection;
4: aload 0
aload 0
aload 0
getfield jakarta.servlet.ServletSecurityElement.methodConstraints:Ljava/util/Collection;
invokevirtual jakarta.servlet.ServletSecurityElement.checkMethodNames:(Ljava/util/Collection;)Ljava/util/Collection;
putfield jakarta.servlet.ServletSecurityElement.methodNames:Ljava/util/Collection;
5: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljakarta/servlet/ServletSecurityElement;
0 6 1 constraint Ljakarta/servlet/HttpConstraintElement;
0 6 2 methodConstraints Ljava/util/Collection<Ljakarta/servlet/HttpMethodConstraintElement;>;
Signature: (Ljakarta/servlet/HttpConstraintElement;Ljava/util/Collection<Ljakarta/servlet/HttpMethodConstraintElement;>;)V
MethodParameters:
Name Flags
constraint
methodConstraints
public void <init>(jakarta.servlet.annotation.ServletSecurity);
descriptor: (Ljakarta/servlet/annotation/ServletSecurity;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=9, locals=6, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokeinterface jakarta.servlet.annotation.ServletSecurity.value:()Ljakarta/servlet/annotation/HttpConstraint;
invokeinterface jakarta.servlet.annotation.HttpConstraint.value:()Ljakarta/servlet/annotation/ServletSecurity$EmptyRoleSemantic;
aload 1
invokeinterface jakarta.servlet.annotation.ServletSecurity.value:()Ljakarta/servlet/annotation/HttpConstraint;
invokeinterface jakarta.servlet.annotation.HttpConstraint.transportGuarantee:()Ljakarta/servlet/annotation/ServletSecurity$TransportGuarantee;
aload 1
invokeinterface jakarta.servlet.annotation.ServletSecurity.value:()Ljakarta/servlet/annotation/HttpConstraint;
invokeinterface jakarta.servlet.annotation.HttpConstraint.rolesAllowed:()[Ljava/lang/String;
invokespecial jakarta.servlet.HttpConstraintElement.<init>:(Ljakarta/servlet/annotation/ServletSecurity$EmptyRoleSemantic;Ljakarta/servlet/annotation/ServletSecurity$TransportGuarantee;[Ljava/lang/String;)V
1: aload 0
new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
putfield jakarta.servlet.ServletSecurityElement.methodConstraints:Ljava/util/Collection;
2: aload 1
invokeinterface jakarta.servlet.annotation.ServletSecurity.httpMethodConstraints:()[Ljakarta/servlet/annotation/HttpMethodConstraint;
dup
astore 5
arraylength
istore 4
iconst_0
istore 3
goto 8
StackMap locals: jakarta.servlet.ServletSecurityElement jakarta.servlet.annotation.ServletSecurity top int int jakarta.servlet.annotation.HttpMethodConstraint[]
StackMap stack:
3: aload 5
iload 3
aaload
astore 2
start local 2 4: aload 0
getfield jakarta.servlet.ServletSecurityElement.methodConstraints:Ljava/util/Collection;
new jakarta.servlet.HttpMethodConstraintElement
dup
aload 2
invokeinterface jakarta.servlet.annotation.HttpMethodConstraint.value:()Ljava/lang/String;
new jakarta.servlet.HttpConstraintElement
dup
5: aload 2
invokeinterface jakarta.servlet.annotation.HttpMethodConstraint.emptyRoleSemantic:()Ljakarta/servlet/annotation/ServletSecurity$EmptyRoleSemantic;
aload 2
invokeinterface jakarta.servlet.annotation.HttpMethodConstraint.transportGuarantee:()Ljakarta/servlet/annotation/ServletSecurity$TransportGuarantee;
aload 2
invokeinterface jakarta.servlet.annotation.HttpMethodConstraint.rolesAllowed:()[Ljava/lang/String;
invokespecial jakarta.servlet.HttpConstraintElement.<init>:(Ljakarta/servlet/annotation/ServletSecurity$EmptyRoleSemantic;Ljakarta/servlet/annotation/ServletSecurity$TransportGuarantee;[Ljava/lang/String;)V
invokespecial jakarta.servlet.HttpMethodConstraintElement.<init>:(Ljava/lang/String;Ljakarta/servlet/HttpConstraintElement;)V
6: invokeinterface java.util.Collection.add:(Ljava/lang/Object;)Z
pop
end local 2 7: iinc 3 1
StackMap locals:
StackMap stack:
8: iload 3
iload 4
if_icmplt 3
9: aload 0
aload 0
aload 0
getfield jakarta.servlet.ServletSecurityElement.methodConstraints:Ljava/util/Collection;
invokevirtual jakarta.servlet.ServletSecurityElement.checkMethodNames:(Ljava/util/Collection;)Ljava/util/Collection;
putfield jakarta.servlet.ServletSecurityElement.methodNames:Ljava/util/Collection;
10: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Ljakarta/servlet/ServletSecurityElement;
0 11 1 annotation Ljakarta/servlet/annotation/ServletSecurity;
4 7 2 constraint Ljakarta/servlet/annotation/HttpMethodConstraint;
MethodParameters:
Name Flags
annotation
public java.util.Collection<jakarta.servlet.HttpMethodConstraintElement> getHttpMethodConstraints();
descriptor: ()Ljava/util/Collection;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jakarta.servlet.ServletSecurityElement.methodConstraints:Ljava/util/Collection;
invokestatic java.util.Collections.unmodifiableCollection:(Ljava/util/Collection;)Ljava/util/Collection;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljakarta/servlet/ServletSecurityElement;
Signature: ()Ljava/util/Collection<Ljakarta/servlet/HttpMethodConstraintElement;>;
public java.util.Collection<java.lang.String> getMethodNames();
descriptor: ()Ljava/util/Collection;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jakarta.servlet.ServletSecurityElement.methodNames:Ljava/util/Collection;
invokestatic java.util.Collections.unmodifiableCollection:(Ljava/util/Collection;)Ljava/util/Collection;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljakarta/servlet/ServletSecurityElement;
Signature: ()Ljava/util/Collection<Ljava/lang/String;>;
private java.util.Collection<java.lang.String> checkMethodNames(java.util.Collection<jakarta.servlet.HttpMethodConstraintElement>);
descriptor: (Ljava/util/Collection;)Ljava/util/Collection;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=6, args_size=2
start local 0 start local 1 0: new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
astore 2
start local 2 1: aload 1
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 4
goto 6
StackMap locals: jakarta.servlet.ServletSecurityElement java.util.Collection java.util.Collection top java.util.Iterator
StackMap stack:
2: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jakarta.servlet.HttpMethodConstraintElement
astore 3
start local 3 3: aload 3
invokevirtual jakarta.servlet.HttpMethodConstraintElement.getMethodName:()Ljava/lang/String;
astore 5
start local 5 4: aload 2
aload 5
invokeinterface java.util.Collection.add:(Ljava/lang/Object;)Z
ifne 6
5: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Duplicate HTTP method name: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 5
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 5 end local 3 6: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
7: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljakarta/servlet/ServletSecurityElement;
0 8 1 methodConstraints Ljava/util/Collection<Ljakarta/servlet/HttpMethodConstraintElement;>;
1 8 2 methodNames Ljava/util/Collection<Ljava/lang/String;>;
3 6 3 methodConstraint Ljakarta/servlet/HttpMethodConstraintElement;
4 6 5 methodName Ljava/lang/String;
Signature: (Ljava/util/Collection<Ljakarta/servlet/HttpMethodConstraintElement;>;)Ljava/util/Collection<Ljava/lang/String;>;
MethodParameters:
Name Flags
methodConstraints
}
SourceFile: "ServletSecurityElement.java"
InnerClasses:
public final EmptyRoleSemantic = jakarta.servlet.annotation.ServletSecurity$EmptyRoleSemantic of jakarta.servlet.annotation.ServletSecurity
public final TransportGuarantee = jakarta.servlet.annotation.ServletSecurity$TransportGuarantee of jakarta.servlet.annotation.ServletSecurity