Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

stASN1Types

Feature notes: PKIX / CMS implementation notes

Classes, interfaces and records

classtASN1Boolean

inherits from tASN1CustomData

function ContentAsBoolean: Boolean; override; function ContentAsString: string; override; procedure EditContent(const aValue: Boolean); override; procedure EditContent(const aValue: string); override;

classtASN1CustomInteger

inherits from tASN1CustomData

implements iASN1Integer

function ContentAsCardinal: Cardinal; override;
Returns the value of ContentAsInt64.
function ContentAsInteger: Integer; override;
Returns the value of ContentAsInt64.
procedure ContentAsMPInt(X: iMPInteger); override; procedure ContentAsOctetString(var aOS: iSecretKey); override; function ContentAsOctetString: OctetString; override; function ContentAsBytes: tBytes; override; function UpdatePresent: Boolean; override;

classtASN1SmallInteger

inherits from tASN1CustomInteger

function ContentAsInt64: Int64; override; function ContentAsMPInt(aPool: iBasicMPArith): iMPInteger; override; function ContentAsDSInt(aLocal: Boolean = False): iDSInteger; override; function ContentAsString: string; override;
Delegates to IntToStr, forwarding ContentAsInt64, and returns its result.
procedure EditContent(const aValue: Int64); override; procedure EditContent(const aValue: iMPInteger); override; procedure EditContent(const aValue: string); override; procedure EditContent(const aValue: tBytes); override;

classtASN1LargeInteger

inherits from tASN1CustomInteger

function ContentAsInt64: Int64; override; function ContentAsMPInt(aPool: iBasicMPArith): iMPInteger; override; function ContentAsDSInt(aLocal: Boolean = False): iDSInteger; override; function ContentAsString: string; override; procedure EditContent(const aValue: Int64); override; procedure EditContent(const aValue: iMPInteger); override; procedure EditContent(const aValue: iDSInteger); override; procedure EditContent(const aValue: string); override; procedure EditContent(const aValue: tBytes); override;

classtASN1NamedInteger

inherits from tASN1CustomInteger

function ContentAsInt64: Int64; override; function ContentAsMPInt(aPool: iBasicMPArith): iMPInteger; override; function ContentAsString: string; override; procedure EditContent(const aValue: Int64); override; procedure EditContent(const aValue: iMPInteger); override; procedure EditContent(const aValue: string); override;

classtASN1Enumerated

inherits from tASN1NamedInteger

(no public members)

classtASN1BitString

inherits from tASN1CustomData

function ContentAsASN1Value: string; override; function ContentAsString: string; override; function ContentAsBytes: TBytes; override; function ContentAsSet(var aSet; aSize: Integer): Boolean; override; function ContentAsOctetString: OctetString; override;
Delegates to BytesToOS, forwarding ContentAsOctetStringBytes, and returns its result.
function ContentAsOctetStringBytes: tBytes; override; function ContentAsECPoint(var aP: iECPoint; const aC: iECurve): Boolean; override; procedure EditContent(const aValue: string); override; procedure EditContent(const aValue: tBytes); override; procedure EditContent(const aValue: StreamSec.DSI.PKTypes.iECPoint); override; procedure EditContent(const aSet; aSize: Integer); overload; procedure EditContent(aUnused: Byte; const aValue: TBytes); overload;

classtASN1OctetString

inherits from tASN1CustomData

implements iASN1OctetString

function ContentAsASN1Value: string; override; function ContentAsString: string; override; function ContentAsBytes: TBytes; override; function ContentAsOctetString: OctetString; override; procedure ContentAsOctetString(var aOS: iSecretKey); override; procedure EditContent(const aValue: string); override; procedure EditContent(const aValue: tBytes); override; procedure EditContent(const aValue: StreamSec.DSI.PKTypes.iECPoint); override; procedure EditContent(const aValue: OctetString); override; function UpdatePresent: Boolean; override;

classtASN1Null

inherits from tASN1CustomData

function UpdatePresent: Boolean; override; function ContentAsASN1Value: string; override;
Always returns the string 'NULL'.
function ContentAsString: string; override;
Always returns an empty string.

classtASN1ObjectIdentifier

inherits from tASN1CustomData

function ContentAsOID: ObjectIdentifier; override; function ContentAsString: string; override; procedure EditContent(const aValue: string); override; procedure EditContent(const aValue: ObjectIdentifier); override;

classtASN1CustomString

inherits from tASN1CustomData

class function TryCheckValue(const aValue: string; aRaise: Boolean = False): Boolean; virtual; function ContentAsASN1Value: string; override; function ContentAsString: string; override; procedure EditContent(const aValue: string); override;

classtASN1UTF8String

inherits from tASN1CustomString

(no public members)

classtASN1NumericString

inherits from tASN1CustomString

class function TryCheckValue(const aValue: string; aRaise: Boolean = False) : Boolean; override;

classtASN1PrintableString

inherits from tASN1CustomString

class function TryCheckValue(const aValue: string; aRaise: Boolean = False) : Boolean; override;

classtASN1TeletexString

inherits from tASN1CustomString

(no public members)

classtASN1VideotexString

inherits from tASN1CustomString

(no public members)

classtASN1IA5String

inherits from tASN1CustomString

class function TryCheckValue(const aValue: string; aRaise: Boolean = False) : Boolean; override;

classtASN1GraphicString

inherits from tASN1CustomString

(no public members)

classtASN1VisibleString

inherits from tASN1CustomString

(no public members)

classtASN1GeneralString

inherits from tASN1CustomString

(no public members)

classtASN1UniversalString

inherits from tASN1CustomString

(no public members)

classtASN1BMPString

inherits from tASN1CustomString

(no public members)

classtASN1CustomDateTime

inherits from tASN1CustomData

function ContentAsDateTime: TDateTime; override; function ContentAsSystemTime(var aTime: TSystemTime): Boolean; override; function ContentAsASN1Value: string; override; procedure EditContent(const aValue: TDateTime); override; procedure EditContent(const aValue: TSystemTime); override; function UpdatePresent: Boolean; override;
Present when it holds a time. A time never set holds no time, though its text (00000000000000Z, or 000000000000Z as a UTCTime) is not empty, so the rule of tASN1Base - present when the text is not empty - does not apply to it. Full description »

classtASN1UtcTime

inherits from tASN1CustomDateTime

function ContentAsString: string; override;

classtASN1GeneralizedTime

inherits from tASN1CustomDateTime

function ContentAsString: string; override;

classtASN1X509GeneralizedTime

inherits from tASN1GeneralizedTime

function ContentAsString: string; override;

classtASN1GenericContent

inherits from tASN1OctetString

class function MetaSupportsTag(const aTag : tASN1TagDefinition; const aIdentifiers: array of tASN1Base) : Boolean; override;
Returns True if aTag.fConstructed is False (and vice versa).
function SupportsTag(const aTag : tASN1TagDefinition; const aIdentifiers: array of tASN1Base) : Boolean; override;

Types (enumerations, sets, aliases)

enumtBitStringTextFormat

  tBitStringTextFormat = (bstfBinary,bstfHexadecimal,bstfValueSet,bstfAuto);