Class: Google::Apis::PrivatecaV1beta1::ExtendedKeyUsageOptions

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/privateca_v1beta1/classes.rb,
lib/google/apis/privateca_v1beta1/representations.rb,
lib/google/apis/privateca_v1beta1/representations.rb

Overview

KeyUsage.ExtendedKeyUsageOptions has fields that correspond to certain common OIDs that could be specified as an extended key usage value.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ExtendedKeyUsageOptions

Returns a new instance of ExtendedKeyUsageOptions.



1025
1026
1027
# File 'lib/google/apis/privateca_v1beta1/classes.rb', line 1025

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#client_authBoolean Also known as: client_auth?

Corresponds to OID 1.3.6.1.5.5.7.3.2. Officially described as "TLS WWW client authentication", though regularly used for non-WWW TLS. Corresponds to the JSON property clientAuth

Returns:

  • (Boolean)


987
988
989
# File 'lib/google/apis/privateca_v1beta1/classes.rb', line 987

def client_auth
  @client_auth
end

#code_signingBoolean Also known as: code_signing?

Corresponds to OID 1.3.6.1.5.5.7.3.3. Officially described as "Signing of downloadable executable code client authentication". Corresponds to the JSON property codeSigning

Returns:

  • (Boolean)


994
995
996
# File 'lib/google/apis/privateca_v1beta1/classes.rb', line 994

def code_signing
  @code_signing
end

#email_protectionBoolean Also known as: email_protection?

Corresponds to OID 1.3.6.1.5.5.7.3.4. Officially described as "Email protection". Corresponds to the JSON property emailProtection

Returns:

  • (Boolean)


1001
1002
1003
# File 'lib/google/apis/privateca_v1beta1/classes.rb', line 1001

def email_protection
  @email_protection
end

#ocsp_signingBoolean Also known as: ocsp_signing?

Corresponds to OID 1.3.6.1.5.5.7.3.9. Officially described as "Signing OCSP responses". Corresponds to the JSON property ocspSigning

Returns:

  • (Boolean)


1008
1009
1010
# File 'lib/google/apis/privateca_v1beta1/classes.rb', line 1008

def ocsp_signing
  @ocsp_signing
end

#server_authBoolean Also known as: server_auth?

Corresponds to OID 1.3.6.1.5.5.7.3.1. Officially described as "TLS WWW server authentication", though regularly used for non-WWW TLS. Corresponds to the JSON property serverAuth

Returns:

  • (Boolean)


1015
1016
1017
# File 'lib/google/apis/privateca_v1beta1/classes.rb', line 1015

def server_auth
  @server_auth
end

#time_stampingBoolean Also known as: time_stamping?

Corresponds to OID 1.3.6.1.5.5.7.3.8. Officially described as "Binding the hash of an object to a time". Corresponds to the JSON property timeStamping

Returns:

  • (Boolean)


1022
1023
1024
# File 'lib/google/apis/privateca_v1beta1/classes.rb', line 1022

def time_stamping
  @time_stamping
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1030
1031
1032
1033
1034
1035
1036
1037
# File 'lib/google/apis/privateca_v1beta1/classes.rb', line 1030

def update!(**args)
  @client_auth = args[:client_auth] if args.key?(:client_auth)
  @code_signing = args[:code_signing] if args.key?(:code_signing)
  @email_protection = args[:email_protection] if args.key?(:email_protection)
  @ocsp_signing = args[:ocsp_signing] if args.key?(:ocsp_signing)
  @server_auth = args[:server_auth] if args.key?(:server_auth)
  @time_stamping = args[:time_stamping] if args.key?(:time_stamping)
end