프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$acceptedVersions | array[]mixed | Defaults to only accepting version 1 | |
$anonAllowed | boolean | If a user with an unrecognized identification key attempts to authenticate, should the site accept just the key as a user identification Defaults to false | |
$authenticationPath | string | Required if generating SQRL URLs and validating responses | |
$domain | string | Required if generating the SQRL URLs and validating responses | |
$friendlyName | string | Required | |
$nonceMaxAge | integer | Default 5 | |
$nonceSalt | string | Random string used to salt generated nonces | |
$qrHeight | integer | Default 300 | |
$qrPadding | integer | Default 10 | |
$secure | boolean | Defaults to false |
메소드 | 설명 | |
---|---|---|
getAcceptedVersions ( ) : array | Gets the versions this SQRL server supports | |
getAnonAllowed ( ) : boolean | Gets whether users are allowed to generate anonymous accounts | |
getAuthenticationPath ( ) : string | Gets the path to the authentication script | |
getDomain ( ) : string | Gets the domain clients should generate a key for | |
getFriendlyName ( ) : string | Gets the friendly name displayed to SQRL clients during authentication | |
getNonceMaxAge ( ) : integer | Gets the time in minutes that a nonce is considered valid | |
getNonceSalt ( ) : string | Gets the random string used to salt generated nonces | |
getQrHeight ( ) : integer | Gets the height, in pixels, of a generated QR code | |
getQrPadding ( ) : integer | Gets the padding, in pixels, around a generated QR code | |
getSecure ( ) : boolean | Gets whether responses to the server should be secure | |
load ( string $filePath ) | Loads the configuration from the supplied file path | |
setAcceptedVersions ( mixed $acceptedVersions ) : |
Sets the versions this SQRL server supports | |
setAnonAllowed ( boolean $anonAllowed ) : |
Sets whether users are allowed to generate anonymous accounts | |
setAuthenticationPath ( string $authenticationPath ) : |
Sets the path to the authentication script | |
setDomain ( string $domain ) : |
Sets the domain clients should generate a key for | |
setFriendlyName ( string $friendlyName ) : |
Sets the friendly name displayed to SQRL clients during authentication | |
setNonceMaxAge ( integer $nonceMaxAge ) : |
Sets the time in minutes that a nonce is considered valid | |
setNonceSalt ( string $nonceSalt ) : |
Sets the random string used to salt generated nonces | |
setQrHeight ( integer $qrHeight ) : |
Sets the height, in pixels, of a generated QR code | |
setQrPadding ( integer $qrPadding ) : |
Sets the padding, in pixels, around a generated QR code | |
setSecure ( boolean $secure ) : |
Sets whether responses to the server should be secure |
메소드 | 설명 | |
---|---|---|
loadConfigFromJSON ( $filePath ) |
public getAcceptedVersions ( ) : array | ||
리턴 | array |
public getAnonAllowed ( ) : boolean | ||
리턴 | boolean |
public getAuthenticationPath ( ) : string | ||
리턴 | string |
public getFriendlyName ( ) : string | ||
리턴 | string |
public getNonceMaxAge ( ) : integer | ||
리턴 | integer |
public getNonceSalt ( ) : string | ||
리턴 | string |
public getQrHeight ( ) : integer | ||
리턴 | integer |
public getQrPadding ( ) : integer | ||
리턴 | integer |
public setAcceptedVersions ( mixed $acceptedVersions ) : |
||
$acceptedVersions | mixed | |
리턴 |
public setAnonAllowed ( boolean $anonAllowed ) : |
||
$anonAllowed | boolean | |
리턴 |
public setAuthenticationPath ( string $authenticationPath ) : |
||
$authenticationPath | string | |
리턴 |
public setFriendlyName ( string $friendlyName ) : |
||
$friendlyName | string | |
리턴 |
public setNonceMaxAge ( integer $nonceMaxAge ) : |
||
$nonceMaxAge | integer | |
리턴 |
public setNonceSalt ( string $nonceSalt ) : |
||
$nonceSalt | string | |
리턴 |
public setQrHeight ( integer $qrHeight ) : |
||
$qrHeight | integer | |
리턴 |
public setQrPadding ( integer $qrPadding ) : |
||
$qrPadding | integer | |
리턴 |
protected array[]mixed $acceptedVersions | ||
리턴 | array[]mixed |
protected bool $anonAllowed | ||
리턴 | boolean |
protected string $authenticationPath | ||
리턴 | string |
protected string $domain | ||
리턴 | string |
protected string $nonceSalt | ||
리턴 | string |