📂 Advanced File Manager
Multi-Root Navigation System
⚡ Quick Jump
Server (/)
Home (/home)
Var_www (/var/www)
Current (/home4/shelley/public_html/shelleycutler.com/wp-content/mu-plugins)
📍 Go
⬆ Ke Atas
🏠 Root Server
🏠 Root App
🔄 Refresh
📀 /
›
usr
›
lib
›
python3.9
›
site-packages
›
oci
›
apigateway
›
models
›
📁 __pycache__
📍
Lokasi:
/usr/lib/python3.9/site-packages/oci/apigateway/models/__pycache__
💾
Free:
45.6 GB
⚠️ Direktori ini
tidak writable
.
✏️ Mengedit: token_authentication_policy.cpython-39.opt-1.pyc
a ���f�$ � @ sD d dl mZ ddlmZmZmZ ddlmZ eG dd� de��ZdS )� )�AuthenticationPolicy� )�formatted_flat_dict� NONE_SENTINEL�#value_allowed_none_or_none_sentinel)�init_model_state_from_kwargsc @ s� e Zd ZdZdd� Zedd� �Zejdd� �Zedd� �Zejd d� �Zed d� �Z e jdd� �Z ed d� �Z e jdd� �Z edd� �Zejdd� �Zedd� �Zejdd� �Zdd� Z dd� Zdd� ZdS )�TokenAuthenticationPolicyz� Validate a token present in the header or query parameter. A valid policy must specify either tokenHeader or tokenQueryParam. c K sj ddddddddd�| _ ddd d ddd dd�| _d| _d| _d| _d| _d| _d| _d| _d| _ d| _dS )a� Initializes a new TokenAuthenticationPolicy object with values from keyword arguments. The default value of the :py:attr:`~oci.apigateway.models.TokenAuthenticationPolicy.type` attribute of this class is ``TOKEN_AUTHENTICATION`` and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param is_anonymous_access_allowed: The value to assign to the is_anonymous_access_allowed property of this TokenAuthenticationPolicy. :type is_anonymous_access_allowed: bool :param type: The value to assign to the type property of this TokenAuthenticationPolicy. Allowed values for this property are: "CUSTOM_AUTHENTICATION", "JWT_AUTHENTICATION", "TOKEN_AUTHENTICATION" :type type: str :param token_header: The value to assign to the token_header property of this TokenAuthenticationPolicy. :type token_header: str :param token_query_param: The value to assign to the token_query_param property of this TokenAuthenticationPolicy. :type token_query_param: str :param token_auth_scheme: The value to assign to the token_auth_scheme property of this TokenAuthenticationPolicy. :type token_auth_scheme: str :param max_clock_skew_in_seconds: The value to assign to the max_clock_skew_in_seconds property of this TokenAuthenticationPolicy. :type max_clock_skew_in_seconds: float :param validation_policy: The value to assign to the validation_policy property of this TokenAuthenticationPolicy. :type validation_policy: oci.apigateway.models.TokenAuthenticationValidationPolicy :param validation_failure_policy: The value to assign to the validation_failure_policy property of this TokenAuthenticationPolicy. :type validation_failure_policy: oci.apigateway.models.ValidationFailurePolicy �bool�str�floatZ#TokenAuthenticationValidationPolicyZValidationFailurePolicy)Zis_anonymous_access_allowed�type�token_header�token_query_param�token_auth_scheme�max_clock_skew_in_seconds�validation_policy�validation_failure_policyZisAnonymousAccessAllowedr ZtokenHeaderZtokenQueryParamZtokenAuthSchemeZmaxClockSkewInSecondsZvalidationPolicyZvalidationFailurePolicyNZTOKEN_AUTHENTICATION) Z swagger_typesZ attribute_mapZ_is_anonymous_access_allowedZ_type� _token_header�_token_query_param�_token_auth_scheme�_max_clock_skew_in_seconds�_validation_policy�_validation_failure_policy)�self�kwargs� r �U/usr/lib/python3.9/site-packages/oci/apigateway/models/token_authentication_policy.py�__init__ s6 )��z"TokenAuthenticationPolicy.__init__c C s | j S )z� Gets the token_header of this TokenAuthenticationPolicy. The name of the header containing the authentication token. :return: The token_header of this TokenAuthenticationPolicy. :rtype: str �r �r r r r r [ s z&TokenAuthenticationPolicy.token_headerc C s || _ dS )z� Sets the token_header of this TokenAuthenticationPolicy. The name of the header containing the authentication token. :param token_header: The token_header of this TokenAuthenticationPolicy. :type: str Nr )r r r r r r g s c C s | j S )z� Gets the token_query_param of this TokenAuthenticationPolicy. The name of the query parameter containing the authentication token. :return: The token_query_param of this TokenAuthenticationPolicy. :rtype: str �r r r r r r s s z+TokenAuthenticationPolicy.token_query_paramc C s || _ dS )a Sets the token_query_param of this TokenAuthenticationPolicy. The name of the query parameter containing the authentication token. :param token_query_param: The token_query_param of this TokenAuthenticationPolicy. :type: str Nr )r r r r r r s c C s | j S )aC Gets the token_auth_scheme of this TokenAuthenticationPolicy. The authentication scheme that is to be used when authenticating the token. This must to be provided if "tokenHeader" is specified. :return: The token_auth_scheme of this TokenAuthenticationPolicy. :rtype: str �r r r r r r � s z+TokenAuthenticationPolicy.token_auth_schemec C s || _ dS )aS Sets the token_auth_scheme of this TokenAuthenticationPolicy. The authentication scheme that is to be used when authenticating the token. This must to be provided if "tokenHeader" is specified. :param token_auth_scheme: The token_auth_scheme of this TokenAuthenticationPolicy. :type: str Nr! )r r r r r r � s c C s | j S )a9 Gets the max_clock_skew_in_seconds of this TokenAuthenticationPolicy. The maximum expected time difference between the system clocks of the token issuer and the API Gateway. :return: The max_clock_skew_in_seconds of this TokenAuthenticationPolicy. :rtype: float �r r r r r r � s z3TokenAuthenticationPolicy.max_clock_skew_in_secondsc C s || _ dS )aQ Sets the max_clock_skew_in_seconds of this TokenAuthenticationPolicy. The maximum expected time difference between the system clocks of the token issuer and the API Gateway. :param max_clock_skew_in_seconds: The max_clock_skew_in_seconds of this TokenAuthenticationPolicy. :type: float Nr"