struct Movie::Remote::AssociationConfirmation

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

Defined in:

movie/remote/association.cr

Constructors

Instance Method Summary

Constructor Detail

def self.create(client : AssociationHandshake, server : AssociationHandshake, shared_secret : String | Nil) : self #

[View source]
def self.new(association_id : String, node_uid : String, client_nonce : String, server_nonce : String, auth_proof : String) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]
def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

[View source]

Instance Method Detail

def association_id : String #

def auth_proof : String #

def authenticated?(shared_secret : String | Nil) : Bool #

[View source]
def client_nonce : String #

def clone #

[View source]
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) #

[View source]
def node_uid : String #

def server_nonce : String #