| 1 | package OpenID::Lite::Role::Associator;; | ||
| 2 | |||
| 3 | 1 | ▶ | use Any::Moose '::Role'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | |||
| 5 | 1 | ▶ | use OpenID::Lite::Types qw(AssocType SessionType); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 1 | ▶ | use OpenID::Lite::Constants::AssocType qw(HMAC_SHA256); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 1 | ▶ | use OpenID::Lite::Constants::SessionType qw(NO_ENCRYPTION); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | 1 | requires 'associate'; | |
| 10 | |||
| 11 | 1 | has 'assoc_type' => ( | |
| 12 | is => 'rw', | ||
| 13 | isa => AssocType, | ||
| 14 | lazy => 1, | ||
| 15 | default => HMAC_SHA256, | ||
| 16 | ); | ||
| 17 | |||
| 18 | 1 | has 'session_type' => ( | |
| 19 | is => 'rw', | ||
| 20 | isa => SessionType, | ||
| 21 | lazy => 1, | ||
| 22 | default => NO_ENCRYPTION, | ||
| 23 | ); | ||
| 24 | |||
| 25 | 1 | 1; | |