CreateAndSign creates a new JWT token based on the Aporeto identities.
JWTClaims is the structure of the claims we are sending on the wire.
Verifier keeps all the structures for processing tokens.
NewVerifier creates a new Aporeto JWT Verifier. The globalCertificate is optional and is needed for configurations that do not transmit the token over the wire.
ParseToken parses and validates the JWT token, give the publicKey. It returns the scopes the identity and the subject of the provided token. These tokens are strictly signed with EC. TODO: We can be more flexible with the algorithm selection here.
UpdateSecrets updates the secrets of the token Verifier.