blob: bd09ec0bc5522aaff6048a6a805dd0df8b60af90 [file] [log] [blame]
package jwt
import "github.com/SermoDigital/jose/crypto"
type JWT interface {
// Claims returns the set of Claims.
Claims() Claims
// Validate returns an error describing any issues found while
// validating the JWT.
Validate(key interface{}, method crypto.SigningMethod) error
// Serialize serializes the JWT into its on-the-wire
// representation.
Serialize(key interface{}) ([]byte, error)
}