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

## Class PKCS15_PasswordAuthenticationObject

    Object
       |
       +--PKCS15_PasswordAuthenticationObject

class PKCS15_PasswordAuthenticationObject

This class supports password authentication objects.

The class decodes the following ASN.1 syntax:

     PasswordAttributes ::= SEQUENCE {
    	pwdFlags PasswordFlags,
    	pwdType PasswordType,
    	minLength INTEGER (cia-lb-minPasswordLength..cia-ub-minPasswordLength),
    	storedLength INTEGER (0..cia-ub-storedPasswordLength),
    	maxLength INTEGER OPTIONAL,
    	pwdReference [0] Reference DEFAULT 0,
    	padChar OCTET STRING (SIZE(1)) OPTIONAL,
    	lastPasswordChange GeneralizedTime OPTIONAL,
    	path Path OPTIONAL,
    	... -- For future extensions
     }
     PasswordFlags ::= BIT STRING {
    	case-sensitive (0),
    	local (1),
    	change-disabled (2),
    	unblock-disabled (3),
    	initialized (4),
    	needs-padding (5),
    	unblockingPassword (6),
    	soPassword (7),
    	disable-allowed (8),
    	integrity-protected (9),
    	confidentiality-protected (10),
    	exchangeRefData (11)
    	} (CONSTRAINED BY { -- "unblockingPassword" and "soPassword" cannot both be set -- })
     PasswordType ::= ENUMERATED {bcd, ascii-numeric, utf8, half-nibble-bcd, iso9564-1, ...}

Defined in p15classes.js

Field Summary
`Object` | `maxLength`
`Object` | `minLength`
`Object` | `pwdFlags`
`Object` | `pwdReference`
`Object` | `pwdType`
`Object` | `storedLength`

Constructor Summary
`PKCS15_PasswordAuthenticationObject(tlv)` Create a Password Authentication Object

Method Summary
`String` | `getPwdFlagsAsString()` Gets the password flags as string of concatenated flags.
`String` | `getPwdTypeAsString()` Gets the password type.
`String` | `toString()` Convert the object to a human readable string

Field Detail

### maxLength

    Object maxLength

### minLength

    Object minLength

### pwdFlags

    Object pwdFlags

### pwdReference

    Object pwdReference

### pwdType

    Object pwdType

### storedLength

    Object storedLength

Constructor Detail

### PKCS15_PasswordAuthenticationObject

    PKCS15_PasswordAuthenticationObject(tlv)

Create a Password Authentication Object

Parameters:

`the` - tlv structure containing the CIO

Method Detail

### getPwdFlagsAsString

    String getPwdFlagsAsString()

Gets the password flags as string of concatenated flags.

Returns:

the string containing the flags separated by a blank

### getPwdTypeAsString

    String getPwdTypeAsString()

Gets the password type.

Returns:

the string containing the password type (BCD, ASCII-NUMERIC, UTF8, HALF-NIBBLE-BCD or ISO9564-1)

### toString

    String toString()

Convert the object to a human readable string

Returns:

the string representation of the object

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 Fri Oct 24 18:16:45 2025