X509ExampleContentsIndex
Codec.ASN1.X509
Portabilityportable
Stabilityexperimental
Maintainerdominic.steinitz@blueyonder.co.uk
Contents
Types
Type classes
Function types
Description
Definitions to allow the typechecking of an X.509 certificate and functions to extract information from it.
Synopsis
data Certificate = Certificate {
version3 :: Version
serialNumber :: CertificateSerialNumber
signature :: AlgorithmIdentifier
issuer :: Name
validity1 :: Validity
subject :: Name
subjectPublicKeyInfo2 :: SubjectPublicKeyInfo
}
data SignedCertificate = SignedCertificate {
certificate1 :: Certificate
algorithmIdentifier1 :: AlgorithmIdentifier
octetString :: BitString
}
data SubjectPublicKeyInfo = SubjectPublicKeyInfo {
algorithm2 :: AlgorithmIdentifier
subjectPublicKeyInfo1 :: BitString
}
data RSAPublicKey = RSAPublicKey {
modulus1 :: Integer
publicExponent1 :: Integer
}
data AlgorithmIdentifier = AlgorithmIdentifier {
algorithm1 :: Algorithm
parameters1 :: (Maybe Parameters)
}
data AttributeTypeAndValue = AttributeTypeAndValue {
type1 :: OID
value :: DirectoryString
}
data RelativeDistinguishedName = RelativeDistinguishedName (SetOf AttributeTypeAndValue)
data CertificateVersion
time :: TypeDefn
validity :: TypeDefn
attributeTypeAndValue :: TypeDefn
relativeDistinguishedName :: TypeDefn
algorithmIdentifier :: TypeDefn
signedCertificate :: TypeDefn
rsaPublicKey :: TypeDefn
notBefore :: Validity -> Time
notAfter :: Validity -> Time
unName :: Name -> [RelativeDistinguishedName]
unTime :: Time -> VisibleString
unRelativeDistinguishedName :: RelativeDistinguishedName -> SetOf AttributeTypeAndValue
Types
data Certificate
Constructors
Certificate
version3 :: Version
serialNumber :: CertificateSerialNumber
signature :: AlgorithmIdentifier
issuer :: Name
validity1 :: Validity
subject :: Name
subjectPublicKeyInfo2 :: SubjectPublicKeyInfo
show/hide Instances
data SignedCertificate
Constructors
SignedCertificate
certificate1 :: Certificate
algorithmIdentifier1 :: AlgorithmIdentifier
octetString :: BitString
show/hide Instances
data SubjectPublicKeyInfo
Constructors
SubjectPublicKeyInfo
algorithm2 :: AlgorithmIdentifier
subjectPublicKeyInfo1 :: BitString
show/hide Instances
data RSAPublicKey
Constructors
RSAPublicKey
modulus1 :: Integer
publicExponent1 :: Integer
show/hide Instances
data AlgorithmIdentifier
Constructors
AlgorithmIdentifier
algorithm1 :: Algorithm
parameters1 :: (Maybe Parameters)
show/hide Instances
data AttributeTypeAndValue
Constructors
AttributeTypeAndValue
type1 :: OID
value :: DirectoryString
show/hide Instances
data RelativeDistinguishedName
Constructors
RelativeDistinguishedName (SetOf AttributeTypeAndValue)
show/hide Instances
data CertificateVersion
show/hide Instances
Type classes
Function types
time :: TypeDefn
validity :: TypeDefn
attributeTypeAndValue :: TypeDefn
relativeDistinguishedName :: TypeDefn
algorithmIdentifier :: TypeDefn
signedCertificate :: TypeDefn
rsaPublicKey :: TypeDefn
notBefore :: Validity -> Time
notAfter :: Validity -> Time
unName :: Name -> [RelativeDistinguishedName]
unTime :: Time -> VisibleString
unRelativeDistinguishedName :: RelativeDistinguishedName -> SetOf AttributeTypeAndValue
Produced by Haddock version 0.8