class DefaultValidator implements AuthorizationValidatorInterface (View source)

Properties

private AuthorizationValidatorInterface $validator
private Application $app

Methods

__construct(BearerTokenValidator $validator, Application $app)

No description

ServerRequestInterface
validateAuthorization(ServerRequestInterface $request)

Determine the access token in the authorization header and append OAUth properties to the request as attributes.

setPublicKey(CryptKey $key)

No description

setPrivateKey(CryptKey $privateKey)

Set path to private key.

setEncryptionKey(string $key = null)

Set the encryption key

Details

__construct(BearerTokenValidator $validator, Application $app)

No description

Parameters

BearerTokenValidator $validator
Application $app

ServerRequestInterface validateAuthorization(ServerRequestInterface $request)

Determine the access token in the authorization header and append OAUth properties to the request as attributes.

Parameters

ServerRequestInterface $request

Return Value

ServerRequestInterface

setPublicKey(CryptKey $key)

No description

Parameters

CryptKey $key

setPrivateKey(CryptKey $privateKey)

Set path to private key.

Parameters

CryptKey $privateKey

setEncryptionKey(string $key = null)

Set the encryption key

Parameters

string $key