Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
GitHub.App.Token.JWT
Contents
Synopsis
- signJWT :: MonadIO m => ExpirationTime -> Issuer -> PrivateKey -> m ByteString
- newtype ExpirationTime = ExpirationTime {}
- newtype Issuer = Issuer {}
- newtype PrivateKey = PrivateKey {
- unwrap :: ByteString
- newtype InvalidPrivateKey = InvalidPrivateKey PrivateKey
- data InvalidDate = InvalidDate {}
- newtype InvalidIssuer = InvalidIssuer Issuer
Documentation
signJWT :: MonadIO m => ExpirationTime -> Issuer -> PrivateKey -> m ByteString Source #
newtype ExpirationTime Source #
Constructors
ExpirationTime | |
Fields |
Private RSA Key data
newtype PrivateKey Source #
Constructors
PrivateKey | |
Fields
|
Instances
Show PrivateKey Source # | |
Defined in GitHub.App.Token.JWT Methods showsPrec :: Int -> PrivateKey -> ShowS # show :: PrivateKey -> String # showList :: [PrivateKey] -> ShowS # |
Errors
newtype InvalidPrivateKey Source #
Constructors
InvalidPrivateKey PrivateKey |
Instances
Exception InvalidPrivateKey Source # | |
Defined in GitHub.App.Token.JWT Methods toException :: InvalidPrivateKey -> SomeException # | |
Show InvalidPrivateKey Source # | |
Defined in GitHub.App.Token.JWT Methods showsPrec :: Int -> InvalidPrivateKey -> ShowS # show :: InvalidPrivateKey -> String # showList :: [InvalidPrivateKey] -> ShowS # |
data InvalidDate Source #
Constructors
InvalidDate | |
Instances
Exception InvalidDate Source # | |
Defined in GitHub.App.Token.JWT Methods toException :: InvalidDate -> SomeException # fromException :: SomeException -> Maybe InvalidDate # displayException :: InvalidDate -> String # | |
Show InvalidDate Source # | |
Defined in GitHub.App.Token.JWT Methods showsPrec :: Int -> InvalidDate -> ShowS # show :: InvalidDate -> String # showList :: [InvalidDate] -> ShowS # |
newtype InvalidIssuer Source #
Constructors
InvalidIssuer Issuer |
Instances
Exception InvalidIssuer Source # | |
Defined in GitHub.App.Token.JWT Methods toException :: InvalidIssuer -> SomeException # fromException :: SomeException -> Maybe InvalidIssuer # displayException :: InvalidIssuer -> String # | |
Show InvalidIssuer Source # | |
Defined in GitHub.App.Token.JWT Methods showsPrec :: Int -> InvalidIssuer -> ShowS # show :: InvalidIssuer -> String # showList :: [InvalidIssuer] -> ShowS # |