module Smith.Client.Data.CertificateRequest (
Principal (..)
, PublicKey (..)
, HostName (..)
, CertificateRequest (..)
) where
import Data.Text (Text)
import Smith.Client.Data.Environment
newtype Principal =
Principal {
getPrincipal :: Text
} deriving (Eq, Ord, Show)
newtype PublicKey =
PublicKey {
getPublicKey :: Text
} deriving (Eq, Ord, Show)
newtype HostName =
HostName {
getHostName :: Text
} deriving (Eq, Ord, Show)
data CertificateRequest =
CertificateRequest {
certificateRequestPublicKey :: PublicKey
, certificateRequestPrincipals :: [Principal]
, certificateRequestEnvironment :: Environment
, certificateRequestHostName :: Maybe HostName
} deriving (Eq, Ord, Show)