StaticPublicKey

class oci.apigateway.models.StaticPublicKey(**kwargs)

Bases: object

A static public key which is used to verify the JWT signature.

Attributes:

FORMAT_JSON_WEB_KEY

A constant which can be used with the format property of a StaticPublicKey.

FORMAT_PEM

A constant which can be used with the format property of a StaticPublicKey.

format

[Required] Gets the format of this StaticPublicKey.

kid

[Required] Gets the kid of this StaticPublicKey.

Methods:

__init__(**kwargs)

Initializes a new StaticPublicKey object with values from keyword arguments.

get_subtype(object_dictionary)

Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.

FORMAT_JSON_WEB_KEY = 'JSON_WEB_KEY'

A constant which can be used with the format property of a StaticPublicKey. This constant has a value of “JSON_WEB_KEY”

FORMAT_PEM = 'PEM'

A constant which can be used with the format property of a StaticPublicKey. This constant has a value of “PEM”

__init__(**kwargs)

Initializes a new StaticPublicKey object with values from keyword arguments. This class has the following subclasses and if you are using this class as input to a service operations then you should favor using a subclass over the base class:

The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters
  • kid (str) – The value to assign to the kid property of this StaticPublicKey.

  • format (str) – The value to assign to the format property of this StaticPublicKey. Allowed values for this property are: “JSON_WEB_KEY”, “PEM”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

property format

[Required] Gets the format of this StaticPublicKey. The format of the public key.

Allowed values for this property are: “JSON_WEB_KEY”, “PEM”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns

The format of this StaticPublicKey.

Return type

str

static get_subtype(object_dictionary)

Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.

property kid

[Required] Gets the kid of this StaticPublicKey. A unique key ID. This key will be used to verify the signature of a JWT with matching “kid”.

Returns

The kid of this StaticPublicKey.

Return type

str