Enum Xss.AttackVector
- java.lang.Object
-
- java.lang.Enum<Xss.AttackVector>
-
- com.google.cloud.websecurityscanner.v1.Xss.AttackVector
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite
,com.google.protobuf.ProtocolMessageEnum
,Serializable
,Comparable<Xss.AttackVector>
- Enclosing class:
- Xss
public static enum Xss.AttackVector extends Enum<Xss.AttackVector> implements com.google.protobuf.ProtocolMessageEnum
Types of XSS attack vector.
Protobuf enumgoogle.cloud.websecurityscanner.v1.Xss.AttackVector
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ATTACK_VECTOR_UNSPECIFIED
Unknown attack vector.COOKIE
The attack comes from fuzzing the browser's cookies.FORM_INPUT
The attack comes from fuzzing an input element.GET_PARAMETERS
The attack comes from fuzzing parameters in the url.HTML_COMMENT
The attack comes from fuzzing the HTML comments.LOCAL_STORAGE
The attack comes from fuzzing the browser's localStorage.POST_MESSAGE
The attack comes from hijacking the post messaging mechanism.POST_PARAMETERS
The attack comes from fuzzing the POST parameters.PROTOCOL
The attack comes from fuzzing the protocol.REFERRER
The attack comes from fuzzing the referrer property.SAME_ORIGIN
The attack is a Same-Origin Method Execution attack via a GET parameter.SESSION_STORAGE
The attack comes from fuzzing the browser's sessionStorage.STORED_XSS
The attack comes from the server side and is stored.UNRECOGNIZED
URL_FRAGMENT
The attack comes from fuzzing the fragment in the url.USER_CONTROLLABLE_URL
The attack payload is received from a third-party host via a URL that is user-controllableWINDOW_NAME
The attack comes from fuzzing the window's name property.
-
Field Summary
Fields Modifier and Type Field Description static int
ATTACK_VECTOR_UNSPECIFIED_VALUE
Unknown attack vector.static int
COOKIE_VALUE
The attack comes from fuzzing the browser's cookies.static int
FORM_INPUT_VALUE
The attack comes from fuzzing an input element.static int
GET_PARAMETERS_VALUE
The attack comes from fuzzing parameters in the url.static int
HTML_COMMENT_VALUE
The attack comes from fuzzing the HTML comments.static int
LOCAL_STORAGE_VALUE
The attack comes from fuzzing the browser's localStorage.static int
POST_MESSAGE_VALUE
The attack comes from hijacking the post messaging mechanism.static int
POST_PARAMETERS_VALUE
The attack comes from fuzzing the POST parameters.static int
PROTOCOL_VALUE
The attack comes from fuzzing the protocol.static int
REFERRER_VALUE
The attack comes from fuzzing the referrer property.static int
SAME_ORIGIN_VALUE
The attack is a Same-Origin Method Execution attack via a GET parameter.static int
SESSION_STORAGE_VALUE
The attack comes from fuzzing the browser's sessionStorage.static int
STORED_XSS_VALUE
The attack comes from the server side and is stored.static int
URL_FRAGMENT_VALUE
The attack comes from fuzzing the fragment in the url.static int
USER_CONTROLLABLE_URL_VALUE
The attack payload is received from a third-party host via a URL that is user-controllablestatic int
WINDOW_NAME_VALUE
The attack comes from fuzzing the window's name property.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Xss.AttackVector
forNumber(int value)
static com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor()
com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType()
int
getNumber()
com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor()
static com.google.protobuf.Internal.EnumLiteMap<Xss.AttackVector>
internalGetValueMap()
static Xss.AttackVector
valueOf(int value)
Deprecated.static Xss.AttackVector
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name.static Xss.AttackVector
valueOf(String name)
Returns the enum constant of this type with the specified name.static Xss.AttackVector[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ATTACK_VECTOR_UNSPECIFIED
public static final Xss.AttackVector ATTACK_VECTOR_UNSPECIFIED
Unknown attack vector.
ATTACK_VECTOR_UNSPECIFIED = 0;
-
LOCAL_STORAGE
public static final Xss.AttackVector LOCAL_STORAGE
The attack comes from fuzzing the browser's localStorage.
LOCAL_STORAGE = 1;
-
SESSION_STORAGE
public static final Xss.AttackVector SESSION_STORAGE
The attack comes from fuzzing the browser's sessionStorage.
SESSION_STORAGE = 2;
-
WINDOW_NAME
public static final Xss.AttackVector WINDOW_NAME
The attack comes from fuzzing the window's name property.
WINDOW_NAME = 3;
-
REFERRER
public static final Xss.AttackVector REFERRER
The attack comes from fuzzing the referrer property.
REFERRER = 4;
-
FORM_INPUT
public static final Xss.AttackVector FORM_INPUT
The attack comes from fuzzing an input element.
FORM_INPUT = 5;
-
COOKIE
public static final Xss.AttackVector COOKIE
The attack comes from fuzzing the browser's cookies.
COOKIE = 6;
-
POST_MESSAGE
public static final Xss.AttackVector POST_MESSAGE
The attack comes from hijacking the post messaging mechanism.
POST_MESSAGE = 7;
-
GET_PARAMETERS
public static final Xss.AttackVector GET_PARAMETERS
The attack comes from fuzzing parameters in the url.
GET_PARAMETERS = 8;
-
URL_FRAGMENT
public static final Xss.AttackVector URL_FRAGMENT
The attack comes from fuzzing the fragment in the url.
URL_FRAGMENT = 9;
-
HTML_COMMENT
public static final Xss.AttackVector HTML_COMMENT
The attack comes from fuzzing the HTML comments.
HTML_COMMENT = 10;
-
POST_PARAMETERS
public static final Xss.AttackVector POST_PARAMETERS
The attack comes from fuzzing the POST parameters.
POST_PARAMETERS = 11;
-
PROTOCOL
public static final Xss.AttackVector PROTOCOL
The attack comes from fuzzing the protocol.
PROTOCOL = 12;
-
STORED_XSS
public static final Xss.AttackVector STORED_XSS
The attack comes from the server side and is stored.
STORED_XSS = 13;
-
SAME_ORIGIN
public static final Xss.AttackVector SAME_ORIGIN
The attack is a Same-Origin Method Execution attack via a GET parameter.
SAME_ORIGIN = 14;
-
USER_CONTROLLABLE_URL
public static final Xss.AttackVector USER_CONTROLLABLE_URL
The attack payload is received from a third-party host via a URL that is user-controllable
USER_CONTROLLABLE_URL = 15;
-
UNRECOGNIZED
public static final Xss.AttackVector UNRECOGNIZED
-
-
Field Detail
-
ATTACK_VECTOR_UNSPECIFIED_VALUE
public static final int ATTACK_VECTOR_UNSPECIFIED_VALUE
Unknown attack vector.
ATTACK_VECTOR_UNSPECIFIED = 0;
- See Also:
- Constant Field Values
-
LOCAL_STORAGE_VALUE
public static final int LOCAL_STORAGE_VALUE
The attack comes from fuzzing the browser's localStorage.
LOCAL_STORAGE = 1;
- See Also:
- Constant Field Values
-
SESSION_STORAGE_VALUE
public static final int SESSION_STORAGE_VALUE
The attack comes from fuzzing the browser's sessionStorage.
SESSION_STORAGE = 2;
- See Also:
- Constant Field Values
-
WINDOW_NAME_VALUE
public static final int WINDOW_NAME_VALUE
The attack comes from fuzzing the window's name property.
WINDOW_NAME = 3;
- See Also:
- Constant Field Values
-
REFERRER_VALUE
public static final int REFERRER_VALUE
The attack comes from fuzzing the referrer property.
REFERRER = 4;
- See Also:
- Constant Field Values
-
FORM_INPUT_VALUE
public static final int FORM_INPUT_VALUE
The attack comes from fuzzing an input element.
FORM_INPUT = 5;
- See Also:
- Constant Field Values
-
COOKIE_VALUE
public static final int COOKIE_VALUE
The attack comes from fuzzing the browser's cookies.
COOKIE = 6;
- See Also:
- Constant Field Values
-
POST_MESSAGE_VALUE
public static final int POST_MESSAGE_VALUE
The attack comes from hijacking the post messaging mechanism.
POST_MESSAGE = 7;
- See Also:
- Constant Field Values
-
GET_PARAMETERS_VALUE
public static final int GET_PARAMETERS_VALUE
The attack comes from fuzzing parameters in the url.
GET_PARAMETERS = 8;
- See Also:
- Constant Field Values
-
URL_FRAGMENT_VALUE
public static final int URL_FRAGMENT_VALUE
The attack comes from fuzzing the fragment in the url.
URL_FRAGMENT = 9;
- See Also:
- Constant Field Values
-
HTML_COMMENT_VALUE
public static final int HTML_COMMENT_VALUE
The attack comes from fuzzing the HTML comments.
HTML_COMMENT = 10;
- See Also:
- Constant Field Values
-
POST_PARAMETERS_VALUE
public static final int POST_PARAMETERS_VALUE
The attack comes from fuzzing the POST parameters.
POST_PARAMETERS = 11;
- See Also:
- Constant Field Values
-
PROTOCOL_VALUE
public static final int PROTOCOL_VALUE
The attack comes from fuzzing the protocol.
PROTOCOL = 12;
- See Also:
- Constant Field Values
-
STORED_XSS_VALUE
public static final int STORED_XSS_VALUE
The attack comes from the server side and is stored.
STORED_XSS = 13;
- See Also:
- Constant Field Values
-
SAME_ORIGIN_VALUE
public static final int SAME_ORIGIN_VALUE
The attack is a Same-Origin Method Execution attack via a GET parameter.
SAME_ORIGIN = 14;
- See Also:
- Constant Field Values
-
USER_CONTROLLABLE_URL_VALUE
public static final int USER_CONTROLLABLE_URL_VALUE
The attack payload is received from a third-party host via a URL that is user-controllable
USER_CONTROLLABLE_URL = 15;
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static Xss.AttackVector[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Xss.AttackVector c : Xss.AttackVector.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Xss.AttackVector valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getNumber
public final int getNumber()
- Specified by:
getNumber
in interfacecom.google.protobuf.Internal.EnumLite
- Specified by:
getNumber
in interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
@Deprecated public static Xss.AttackVector valueOf(int value)
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
value
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
forNumber
public static Xss.AttackVector forNumber(int value)
- Parameters:
value
- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<Xss.AttackVector> internalGetValueMap()
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
- Specified by:
getValueDescriptor
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
-
valueOf
public static Xss.AttackVector valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
desc
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-