|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--EAC2CVCertificateGenerator
Class implementing a generator for CV certificates according to EAC 1.1 and EAC 2.0 specifications.
Defined in EAC2CVCertificateGenerator.js
Field Summary | |
Object |
crypto
|
Constructor Summary | |
EAC2CVCertificateGenerator(<Crypto> crypto)
Define a generator object for CV certificates |
Method Summary | |
CVC
|
generateCVCertificate(<Key> signingKey, outertaOID)
Generate a certificate based on the parameter set using the setter methods. |
void
|
setCAR(<String> CAR)
Set the certification authority reference |
void
|
setChatAuthorizationLevel(<ByteString> authLevel)
Set the authorization level of the authorization template for the generated certificate |
void
|
setChatOID(<ByteString> oid)
Set the object identifier of the authorization template for the generated certificate |
void
|
setCHR(<String> CHR)
Set the certificate holder reference |
void
|
setEffectiveDate(<String> effectiveDate)
Set the effective date |
void
|
setExpiryDate(<String> expiryDate)
Set the expiry date |
void
|
setExtensions(extensions)
Set some additional extensions |
void
|
setIncludeDomainParameters(<Boolean> value)
Set whether to include domain parameters in the certificate or not |
void
|
setProfileIdentifier(<Number> profileID)
Set the profile identifier |
void
|
setPublicKey(<Key> publicKey)
Set the public key to be included in the certificate |
void
|
setTAAlgorithmIdentifier(<ByteString> oid)
Set the algorithm identifier for terminal authentication |
ByteString
|
stripLeadingZeros(<ByteString> value)
Strips leading zeros of a ByteString |
<static> ByteString
|
decodeUncompressedECPoint(<ByteString> uncompressedPoint)
Decode x/y coordinates from uncompressed format |
<static> String
|
dtos(<Date> d)
Convert date to string with format YYMMDD. |
<static> ByteString
|
encodeUncompressedECPoint(<ByteString> x,<ByteString> y)
Convert x/y coordinates to uncompressed format |
Field Detail |
Object crypto
Constructor Detail |
EAC2CVCertificateGenerator(<Crypto> crypto)
crypto
- the crypto provider to be used
Method Detail |
CVC generateCVCertificate(<Key> signingKey, outertaOID)
signingKey
- the key to be used for signing the certificate
taOID
- the object identifier associated with the signing key
void setCAR(<String> CAR)
CAR
- the CAR value
CAR
- the CAR value
CAR
- the CAR value
void setChatAuthorizationLevel(<ByteString> authLevel)
authLevel
- the encoded authorization level
void setChatOID(<ByteString> oid)
oid
- the object identifier for the chat
void setCHR(<String> CHR)
CHR
- the CHR value
CHR
- the CHR value
CHR
- the CHR value
void setEffectiveDate(<String> effectiveDate)
effectiveDate
- the effective date in the format YYMMDD
effectiveDate
- the effective date as Date object
void setExpiryDate(<String> expiryDate)
expiryDate
- the expiry date in the format YYMMDD
expiryDate
- the expiry date as Date object
void setExtensions(extensions)
Array
- of ASN.1 objects} extensions array containing the ASN.1 encoded extensions for the certificate
void setIncludeDomainParameters(<Boolean> value)
value
- the flag indicator
void setProfileIdentifier(<Number> profileID)
profileID
- the profile identifier
void setPublicKey(<Key> publicKey)
publicKey
- the public key object to be certified
void setTAAlgorithmIdentifier(<ByteString> oid)
oid
- the object identifier as specified in appendix A.6.4
ByteString stripLeadingZeros(<ByteString> value)
value
- the ByteString value
<static> ByteString decodeUncompressedECPoint(<ByteString> uncompressedPoint)
uncompressedPoint
- the uncompressed point
<static> String dtos(<Date> d)
d
- the date object.
<static> ByteString encodeUncompressedECPoint(<ByteString> x,<ByteString> y)
x
- the x-coordinate of the point
y
- the y-coordinate of the point
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |