public boolean supports ( final WebContext ctx ) { return AWS_AUTH4_PATTERN . matcher ( ctx . getHeaderValue ( "Authorization" ) . asString ( "" ) ) . matches ( ) || X_AMZ_CREDENTIAL_PATTERN . matcher ( ctx . get ( "X-Amz-Credential" ) . asString ( "" ) ) . matches ( ) ; }
Determines if the given request contains an AWS4 auth token .