Skip to content

Latest commit

 

History

History
77 lines (42 loc) · 3.46 KB

PublicKeyCredential.md

File metadata and controls

77 lines (42 loc) · 3.46 KB

PublicKeyCredential

Properties

Name Type Description Notes
Format string Format: The format of the key. Possible values: "UNSPECIFIED_PUBLIC_KEY_FORMAT" - The format has not been specified. This is an invalid default value and must not be used. "RSA_PEM" - An RSA public key encoded in base64, and wrapped by `-----BEGIN PUBLIC KEY-----` and `-----END PUBLIC KEY-----`. This can be used to verify `RS256` signatures in JWT tokens (RFC7518). "RSA_X509_PEM" - As RSA_PEM, but wrapped in an X.509v3 certificate (RFC5280), encoded in base64, and wrapped by `-----BEGIN CERTIFICATE-----` and `-----END CERTIFICATE-----`. "ES256_PEM" - Public key for the ECDSA algorithm using P-256 and SHA-256, encoded in base64, and wrapped by `-----BEGIN PUBLIC KEY-----` and `-----END PUBLIC KEY-----`. This can be used to verify JWT tokens with the `ES256` algorithm (RFC7518). This curve is defined in OpenSSL as the `prime256v1` curve. "ES256_X509_PEM" - As ES256_PEM, but wrapped in an X.509v3 certificate (RFC5280), encoded in base64, and wrapped by `-----BEGIN CERTIFICATE-----` and `-----END CERTIFICATE-----`.
Key Pointer to string Key: The key data. [optional]

Methods

NewPublicKeyCredential

func NewPublicKeyCredential(format string, ) *PublicKeyCredential

NewPublicKeyCredential instantiates a new PublicKeyCredential object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

NewPublicKeyCredentialWithDefaults

func NewPublicKeyCredentialWithDefaults() *PublicKeyCredential

NewPublicKeyCredentialWithDefaults instantiates a new PublicKeyCredential object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

GetFormat

func (o *PublicKeyCredential) GetFormat() string

GetFormat returns the Format field if non-nil, zero value otherwise.

GetFormatOk

func (o *PublicKeyCredential) GetFormatOk() (*string, bool)

GetFormatOk returns a tuple with the Format field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetFormat

func (o *PublicKeyCredential) SetFormat(v string)

SetFormat sets Format field to given value.

GetKey

func (o *PublicKeyCredential) GetKey() string

GetKey returns the Key field if non-nil, zero value otherwise.

GetKeyOk

func (o *PublicKeyCredential) GetKeyOk() (*string, bool)

GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetKey

func (o *PublicKeyCredential) SetKey(v string)

SetKey sets Key field to given value.

HasKey

func (o *PublicKeyCredential) HasKey() bool

HasKey returns a boolean if a field has been set.

[Back to Model list] [Back to API list] [Back to README]