struct
Movie::Remote::AssociationConfirmation
- Movie::Remote::AssociationConfirmation
- Struct
- Value
- Object
Overview
Completes the server-challenge round trip. A captured confirmation cannot authenticate a second socket because each server response has a fresh nonce.
Included Modules
- JSON::Serializable
Defined in:
movie/remote/association.crConstructors
- .create(client : AssociationHandshake, server : AssociationHandshake, shared_secret : String | Nil) : self
- .new(association_id : String, node_uid : String, client_nonce : String, server_nonce : String, auth_proof : String)
- .new(pull : JSON::PullParser)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
Instance Method Summary
- #association_id : String
- #auth_proof : String
- #authenticated?(shared_secret : String | Nil) : Bool
- #client_nonce : String
- #clone
- #copy_with(association_id _association_id = @association_id, node_uid _node_uid = @node_uid, client_nonce _client_nonce = @client_nonce, server_nonce _server_nonce = @server_nonce, auth_proof _auth_proof = @auth_proof)
- #node_uid : String
- #server_nonce : String
Constructor Detail
def self.new(association_id : String, node_uid : String, client_nonce : String, server_nonce : String, auth_proof : String)
#
Instance Method Detail
def copy_with(association_id _association_id = @association_id, node_uid _node_uid = @node_uid, client_nonce _client_nonce = @client_nonce, server_nonce _server_nonce = @server_nonce, auth_proof _auth_proof = @auth_proof)
#