Enum 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 enum google.cloud.websecurityscanner.v1.Xss.AttackVector
    • 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;
    • 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 name
        NullPointerException - if the argument is null
      • getNumber

        public final int getNumber()
        Specified by:
        getNumber in interface com.google.protobuf.Internal.EnumLite
        Specified by:
        getNumber in interface com.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 name
        NullPointerException - 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 interface com.google.protobuf.ProtocolMessageEnum
      • getDescriptorForType

        public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.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 name
        NullPointerException - if the argument is null