Class PKIXCommon

Object
   |
   +--PKIXCommon

class PKIXCommon

Defined in pkixcommon.js


Field Summary
<static>  Object cRLSign
          
<static>  Object dataEncipherment
          
<static>  Object decipherOnly
          
<static>  Object digitalSignature
          
<static>  Object encipherOnly
          
<static>  Object keyAgreement
          
<static>  Object keyCertSign
          
<static>  Object keyEncipherment
          
<static>  Object nonRepudiation
          
 
Constructor Summary
PKIXCommon()
            Common functions and constants
 
Method Summary
<static> Date addDays(<Date> d, <Number> days)
           Add the specified number of days to a date object
<static> void addNames(<ASN1> t, <Object> name)
           Adds names from the name object to the RDNSequence.
<static> ByteString bitstringForInteger(<Number> val)
           Converts the integer value into a BIT STRING value.
<static> ByteString convertUnsignedInteger(<ByteString> value)
           Removes leading zeros and prepends a single '00' to ByteStrings which have the most significant bit set.
<static> ASN1 createECSubjectPublicKeyInfo(publicKey, encodeECDomainParameter)
           Creates the EC Public Key as subjectPublicKeyInfo TLV structure object.
<static> ASN1 createRSASubjectPublicKeyInfo(publicKey)
           Creates the RSA Public Key as subjectPublicKeyInfo TLV structure object.
<static> String dtoUTC(<Date> d)
           Convert date and time to UTC string with format YYMMDDHHMMSSZ.
<static> ASN1 encodeName(<Object> name)
           Gets the dn as TLV object
<static> Object makeRDN(<String> name, <String> oid, <ASN1> value)
           Creates a relative distinguished name component.
<static> ByteString readFileFromDisk(<String> filename)
           Loads a binary file from disk
<static> void test()
          
<static> void writeFileToDisk(<String> filename, <ByteString> content)
           Writes a byte string object to file

Field Detail

cRLSign

<static> Object cRLSign

dataEncipherment

<static> Object dataEncipherment

decipherOnly

<static> Object decipherOnly

digitalSignature

<static> Object digitalSignature

encipherOnly

<static> Object encipherOnly

keyAgreement

<static> Object keyAgreement

keyCertSign

<static> Object keyCertSign

keyEncipherment

<static> Object keyEncipherment

nonRepudiation

<static> Object nonRepudiation

Constructor Detail

PKIXCommon

PKIXCommon()

Method Detail

addDays

<static> Date addDays(<Date> d, <Number> days)

addNames

<static> void addNames(<ASN1> t, <Object> name)

bitstringForInteger

<static> ByteString bitstringForInteger(<Number> val)

convertUnsignedInteger

<static> ByteString convertUnsignedInteger(<ByteString> value)

createECSubjectPublicKeyInfo

<static> ASN1 createECSubjectPublicKeyInfo(publicKey, encodeECDomainParameter)

createRSASubjectPublicKeyInfo

<static> ASN1 createRSASubjectPublicKeyInfo(publicKey)

dtoUTC

<static> String dtoUTC(<Date> d)

encodeName

<static> ASN1 encodeName(<Object> name)

makeRDN

<static> Object makeRDN(<String> name, <String> oid, <ASN1> value)

readFileFromDisk

<static> ByteString readFileFromDisk(<String> filename)

test

<static> void test()

writeFileToDisk

<static> void writeFileToDisk(<String> filename, <ByteString> content)


Documentation generated by JSDoc on Tue Apr 15 22:10:49 2025