Exception: WSDL::UnsupportedAlgorithmError
- Inherits:
-
SecurityError
- Object
- StandardError
- Error
- FatalError
- SecurityError
- WSDL::UnsupportedAlgorithmError
- Defined in:
- lib/wsdl/errors.rb
Overview
Raised when an algorithm is not supported or not recognized.
This error is raised during signature verification when:
- The response specifies an unknown or unsupported algorithm URI
- An algorithm downgrade attack may be in progress
- A required algorithm parameter is missing
This strict validation prevents algorithm confusion attacks where an attacker modifies the algorithm URI to cause verification with the wrong algorithm.
Instance Attribute Summary collapse
-
#algorithm_type ⇒ Symbol?
readonly
The type of algorithm (:digest, :signature, :canonicalization).
-
#algorithm_uri ⇒ String?
readonly
The unrecognized algorithm URI.
Instance Method Summary collapse
-
#initialize(message = nil, algorithm_uri: nil, algorithm_type: nil) ⇒ UnsupportedAlgorithmError
constructor
Creates a new UnsupportedAlgorithmError.
Constructor Details
#initialize(message = nil, algorithm_uri: nil, algorithm_type: nil) ⇒ UnsupportedAlgorithmError
Creates a new UnsupportedAlgorithmError.
307 308 309 310 311 |
# File 'lib/wsdl/errors.rb', line 307 def initialize( = nil, algorithm_uri: nil, algorithm_type: nil) @algorithm_uri = algorithm_uri @algorithm_type = algorithm_type super() end |
Instance Attribute Details
#algorithm_type ⇒ Symbol? (readonly)
Returns the type of algorithm (:digest, :signature, :canonicalization).
300 301 302 |
# File 'lib/wsdl/errors.rb', line 300 def algorithm_type @algorithm_type end |
#algorithm_uri ⇒ String? (readonly)
Returns the unrecognized algorithm URI.
297 298 299 |
# File 'lib/wsdl/errors.rb', line 297 def algorithm_uri @algorithm_uri end |