License | BSD-style |
---|---|
Maintainer | Vincent Hanquez <vincent@snarc.org> |
Stability | experimental |
Portability | unknown |
Safe Haskell | None |
Language | Haskell98 |
Data.ASN1.Types
Description
Synopsis
- data ASN1
- = Boolean Bool
- | IntVal Integer
- | BitString BitArray
- | OctetString ByteString
- | Null
- | OID OID
- | Real Double
- | Enumerated Integer
- | ASN1String ASN1CharacterString
- | ASN1Time ASN1TimeType DateTime (Maybe TimezoneOffset)
- | Other ASN1Class ASN1Tag ByteString
- | Start ASN1ConstructionType
- | End ASN1ConstructionType
- type ASN1S = [ASN1] -> [ASN1]
- data ASN1Class
- type ASN1Tag = Int
- data ASN1ConstructionType
- data ASN1StringEncoding
- data ASN1TimeType
- class ASN1Object a where
- data ASN1CharacterString = ASN1CharacterString {
- characterEncoding :: ASN1StringEncoding
- getCharacterStringRawData :: ByteString
- asn1CharacterString :: ASN1StringEncoding -> String -> ASN1CharacterString
- asn1CharacterToString :: ASN1CharacterString -> Maybe String
- module Data.ASN1.OID
Documentation
Define high level ASN1 object.
Constructors
Boolean Bool | |
IntVal Integer | |
BitString BitArray | |
OctetString ByteString | |
Null | |
OID OID | |
Real Double | |
Enumerated Integer | |
ASN1String ASN1CharacterString | |
ASN1Time ASN1TimeType DateTime (Maybe TimezoneOffset) | |
Other ASN1Class ASN1Tag ByteString | |
Start ASN1ConstructionType | |
End ASN1ConstructionType |
type ASN1S = [ASN1] -> [ASN1] Source #
represent a chunk of ASN1 Stream. this is equivalent to ShowS but for an ASN1 Stream.
Element class
Constructors
Universal | |
Application | |
Context | |
Private |
Instances
Enum ASN1Class Source # | |
Defined in Data.ASN1.Types.Lowlevel | |
Show ASN1Class Source # | |
Eq ASN1Class Source # | |
Ord ASN1Class Source # | |
Defined in Data.ASN1.Types.Lowlevel |
data ASN1ConstructionType Source #
Define the type of container
Instances
Show ASN1ConstructionType Source # | |
Defined in Data.ASN1.Types Methods showsPrec :: Int -> ASN1ConstructionType -> ShowS show :: ASN1ConstructionType -> String showList :: [ASN1ConstructionType] -> ShowS | |
Eq ASN1ConstructionType Source # | |
Defined in Data.ASN1.Types Methods (==) :: ASN1ConstructionType -> ASN1ConstructionType -> Bool (/=) :: ASN1ConstructionType -> ASN1ConstructionType -> Bool |
data ASN1StringEncoding Source #
Define all possible ASN1 String encoding.
Constructors
IA5 | 128 characters equivalent to the ASCII alphabet |
UTF8 | UTF8 |
General | all registered graphic and character sets (see ISO 2375) plus SPACE and DELETE. |
Graphic | all registered G sets and SPACE |
Numeric | encoding containing numeric [0-9] and space |
Printable | printable [a-z] [A-Z] [()+,-.?:/=] and space. |
VideoTex | CCITT's T.100 and T.101 character sets |
Visible | International ASCII printing character sets |
T61 | teletext |
UTF32 | UTF32 |
Character | Character |
BMP | UCS2 |
Instances
Show ASN1StringEncoding Source # | |
Defined in Data.ASN1.Types.String Methods showsPrec :: Int -> ASN1StringEncoding -> ShowS show :: ASN1StringEncoding -> String showList :: [ASN1StringEncoding] -> ShowS | |
Eq ASN1StringEncoding Source # | |
Defined in Data.ASN1.Types.String Methods (==) :: ASN1StringEncoding -> ASN1StringEncoding -> Bool (/=) :: ASN1StringEncoding -> ASN1StringEncoding -> Bool | |
Ord ASN1StringEncoding Source # | |
Defined in Data.ASN1.Types.String Methods compare :: ASN1StringEncoding -> ASN1StringEncoding -> Ordering (<) :: ASN1StringEncoding -> ASN1StringEncoding -> Bool (<=) :: ASN1StringEncoding -> ASN1StringEncoding -> Bool (>) :: ASN1StringEncoding -> ASN1StringEncoding -> Bool (>=) :: ASN1StringEncoding -> ASN1StringEncoding -> Bool max :: ASN1StringEncoding -> ASN1StringEncoding -> ASN1StringEncoding min :: ASN1StringEncoding -> ASN1StringEncoding -> ASN1StringEncoding |
data ASN1TimeType Source #
Different ASN1 time representation
Constructors
TimeUTC | ASN1 UTCTime Type: limited between 1950-2050 |
TimeGeneralized | ASN1 GeneralizedTime Type |
Instances
Show ASN1TimeType Source # | |
Defined in Data.ASN1.Types Methods showsPrec :: Int -> ASN1TimeType -> ShowS show :: ASN1TimeType -> String showList :: [ASN1TimeType] -> ShowS | |
Eq ASN1TimeType Source # | |
Defined in Data.ASN1.Types | |
Ord ASN1TimeType Source # | |
Defined in Data.ASN1.Types Methods compare :: ASN1TimeType -> ASN1TimeType -> Ordering (<) :: ASN1TimeType -> ASN1TimeType -> Bool (<=) :: ASN1TimeType -> ASN1TimeType -> Bool (>) :: ASN1TimeType -> ASN1TimeType -> Bool (>=) :: ASN1TimeType -> ASN1TimeType -> Bool max :: ASN1TimeType -> ASN1TimeType -> ASN1TimeType min :: ASN1TimeType -> ASN1TimeType -> ASN1TimeType |
class ASN1Object a where Source #
Define an object that can be converted to and from ASN.1
data ASN1CharacterString Source #
ASN1 Character String with encoding
Constructors
ASN1CharacterString | |
Fields
|
Instances
asn1CharacterString :: ASN1StringEncoding -> String -> ASN1CharacterString Source #
encode a string into a character string
asn1CharacterToString :: ASN1CharacterString -> Maybe String Source #
try to decode an ASN1CharacterString
to a String
module Data.ASN1.OID