public Token getXAuthorizationToken ( final ContainerRequest request ) { final String xAuthorizationString = request . getHeaderString ( "X-Authorization" ) ; if ( xAuthorizationString != null && ! "" . equals ( xAuthorizationString ) ) { return Token . fromString ( xAuthorizationString . trim ( ) ) ; } return null ; }
Extract a Fernet token from an X - Authorization header .