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
maxLength
Object maxLength
minLength
Object minLength
pwdFlags
Object pwdFlags
pwdReference
Object pwdReference
pwdType
Object pwdType
storedLength
Object storedLength
PKCS15_PasswordAuthenticationObject
PKCS15_PasswordAuthenticationObject(tlv)
Create a Password Authentication Object
Parameters:
the
- tlv structure containing the CIO
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()
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
Documentation generated by
JSDoc on Tue Apr 15 22:10:49 2025