|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--EAC2CVRequestGenerator
Class implementing a generator for CVC requests
Defined in EAC2CVRequestGenerator.js
Field Summary | |
Object |
crypto
|
Constructor Summary | |
EAC2CVRequestGenerator(crypto)
Constructor for request generator |
Method Summary | |
ASN1
|
generateAuthenticatedCVRequest(<Key> requestKey, <Key> authenticationKey, <PublicKeyReference> authCHR, outertaOID)
Generate authenticated request |
ASN1
|
generateCVRequest(<Key> privateKey)
Generate initial certificate request using the specified private key for signing |
void
|
reset()
Reset the current generator object |
void
|
setCAR(<String> car)
Set the certficate authorization reference (CAR) for the request |
void
|
setCHR(<String> chr)
Set the certficate holder reference (CHR) for the request |
void
|
setExtensions(<ByteString[]> extensions)
Set the extension values that should be included within the request |
void
|
setProfileIdentifier(<Number> profileID)
Set the certificate profile identifier (CPI) for the request |
void
|
setPublicKey(<Key> publicKey)
Set the public key that should be encoded within the request |
void
|
setTAAlgorithmIdentifier(<ByteString> oid)
Set the object identifier that should be included in the public key domain parameters |
<static> Object
|
encodeUncompressedECPoint(x, y)
|
<static> ASN1
|
signAuthenticatedCVRequest(<Crypto> crypto, <CVC> request, <Key> authenticationKey, <PublicKeyReference> authCHR, outertaOID)
Countersign request |
<static> ByteString TODO: Move to Utils
|
stripLeadingZeros(<ByteString> value)
Strips leading zeros of a ByteString |
Field Detail |
Object crypto
Constructor Detail |
EAC2CVRequestGenerator(crypto)
Crypto
- object to use
Method Detail |
ASN1 generateAuthenticatedCVRequest(<Key> requestKey, <Key> authenticationKey, <PublicKeyReference> authCHR, outertaOID)
requestKey
- Private key for the request signature
authenticationKey
- Private key for used for signing and authenticating the request
authCHR
- CHR of the authenticating authority
taOID
- the public key object identifier of the authentication key
ASN1 generateCVRequest(<Key> privateKey)
privateKey
- Private key for signature creation
void reset()
void setCAR(<String> car)
car
- CAR for the request
void setCHR(<String> chr)
chr
- CHR for the request
void setExtensions(<ByteString[]> extensions)
extensions
- Array of DER-encoded extensions
void setProfileIdentifier(<Number> profileID)
profileID
- CPI for the request
void setPublicKey(<Key> publicKey)
publicKey
- Public Key
void setTAAlgorithmIdentifier(<ByteString> oid)
oid
- Object identifier as specified in appendix A.6.4
<static> Object encodeUncompressedECPoint(x, y)
<static> ASN1 signAuthenticatedCVRequest(<Crypto> crypto, <CVC> request, <Key> authenticationKey, <PublicKeyReference> authCHR, outertaOID)
crypto
- the crypto provide to use for signing the request
request
- the self-signed request
authenticationKey
- Private key for used for signing and authenticating the request
authCHR
- CHR of the authenticating authority
taOID
- the public key object identifier of the authentication key
<static> ByteString TODO: Move to Utils stripLeadingZeros(<ByteString> value)
value
- the ByteString value
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |