Class: OCI::Auth::Signers::SecurityTokenSigner
- Inherits:
-
BaseSigner
- Object
- BaseSigner
- OCI::Auth::Signers::SecurityTokenSigner
- Defined in:
- lib/oci/auth/signers/security_token_signer.rb
Overview
The base signer for signing requests where the API key is a token (e.g. instance principals, service-to-service auth) rather representing the details for a specific user.
Direct Known Subclasses
Constant Summary
Constants inherited from BaseSigner
BaseSigner::BODY_HEADERS, BaseSigner::GENERIC_HEADERS, BaseSigner::SIGNATURE_VERSION, BaseSigner::SIGNING_STRATEGY_ENUM
Instance Method Summary collapse
-
#initialize(security_token, private_key, pass_phrase: nil, signing_strategy: OCI::BaseSigner::STANDARD, headers_to_sign_in_all_requests: OCI::BaseSigner::GENERIC_HEADERS, body_headers_to_sign: OCI::BaseSigner::BODY_HEADERS) ⇒ SecurityTokenSigner
constructor
Creates a new SecurityTokenSigner.
Methods inherited from BaseSigner
Constructor Details
#initialize(security_token, private_key, pass_phrase: nil, signing_strategy: OCI::BaseSigner::STANDARD, headers_to_sign_in_all_requests: OCI::BaseSigner::GENERIC_HEADERS, body_headers_to_sign: OCI::BaseSigner::BODY_HEADERS) ⇒ SecurityTokenSigner
Creates a new SecurityTokenSigner
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/oci/auth/signers/security_token_signer.rb', line 19 def initialize( security_token, private_key, pass_phrase: nil, signing_strategy: OCI::BaseSigner::STANDARD, headers_to_sign_in_all_requests: OCI::BaseSigner::GENERIC_HEADERS, body_headers_to_sign: OCI::BaseSigner::BODY_HEADERS ) super( "ST$#{security_token}", private_key, pass_phrase: pass_phrase, signing_strategy: signing_strategy, headers_to_sign_in_all_requests: headers_to_sign_in_all_requests, body_headers_to_sign: body_headers_to_sign ) end |