Overview | File | Class | Tree | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## Class PKCS15_PrivateKey

    Object
       |
       +--PKCS15_CIO
             |
             +--PKCS15_CommonKeyAttributes
                   |
                   +--PKCS15_CommonPrivateKeyAttributes
                         |
                         +--PKCS15_PrivateKey

class PKCS15_PrivateKey
extends PKCS15_CommonPrivateKeyAttributes

This class adds private key attributes to the common private key attribute class.

The class supports RSA and ECC keys.

RSA keys are decoded from the following ASN.1 structure:

     PrivateRSAKeyAttributes ::= SEQUENCE {
     value Path,
     modulusLength INTEGER, -- modulus length in bits, e.g. 1024
     keyInfo KeyInfo {NULL, PublicKeyOperations} OPTIONAL,
     ... -- For future extensions
     }

ECC keys are decoded from the following ASN.1 structure:

     PrivateECKeyAttributes ::= SEQUENCE {
     value Path,
     keyInfo KeyInfo {Parameters, PublicKeyOperations} OPTIONAL,
     ... -- For future extensions
     }

See:

- PKCS15_CommonPrivateKeyAttributes is the base class

Defined in p15classes.js

Field Summary
`Object` | `type`

Fields inherited from class PKCS15_CommonKeyAttributes
`iD, usage, native_, accessFlags, keyReference, startDate, endDate, algReference`

Fields inherited from class PKCS15_CIO
`tlv, label, flags, authId, userConsent, accessControlRules`

Constructor Summary
`PKCS15_PrivateKey(tlv)` Create a Private Key Object

Methods inherited from class PKCS15_CommonKeyAttributes
`getUsageAsString, getAccessFlagsAsString, toString`

Methods inherited from class PKCS15_CIO
`getFlagsAsString`

Field Detail

### type

    Object type

Constructor Detail

### PKCS15_PrivateKey

    PKCS15_PrivateKey(tlv)

Create a Private Key Object

Parameters:

`the` - tlv structure containing the CIO

See:

- PKCS15_CommonPrivateKeyAttributes is the base class

Overview | File | Class | Tree | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Documentation generated by JSDoc on Wed Jan 14 16:42:14 2026