Interface GordianAgreementParams
public interface GordianAgreementParams
Key Agreement Parameters Specification.
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]Obtain the additionalData.Obtain the agreementSpec.Obtain the clientCertificate.Obtain the resultType.Obtain the serverCertificate.Obtain the signatureSpec.Obtain the signerCertificate.setAdditionalData(byte[] pData) Set additional data.setClientCertificate(GordianCertificate pClient) Set client Certificate.setServerCertificate(GordianCertificate pServer) Set server Certificate.setSigner(GordianCertificate pSigner) Declare signer certificate.setSigner(GordianCertificate pSigner, GordianSignatureSpec pSignSpec) Declare signer certificate and specification.
-
Method Details
-
getAgreementSpec
GordianAgreementSpec getAgreementSpec()Obtain the agreementSpec.- Returns:
- the spec
-
getResultType
Object getResultType()Obtain the resultType.- Returns:
- the resultType
-
getClientCertificate
GordianCertificate getClientCertificate()Obtain the clientCertificate.- Returns:
- the certificate
-
getServerCertificate
GordianCertificate getServerCertificate()Obtain the serverCertificate.- Returns:
- the certificate
-
getSignerCertificate
GordianCertificate getSignerCertificate()Obtain the signerCertificate.- Returns:
- the certificate
-
getSignatureSpec
GordianSignatureSpec getSignatureSpec()Obtain the signatureSpec.- Returns:
- the signatureSpec
-
getAdditionalData
byte[] getAdditionalData()Obtain the additionalData.- Returns:
- the additional data
-
setClientCertificate
Set client Certificate.- Parameters:
pClient- the client certificate- Returns:
- the new agreementParams
- Throws:
GordianException- on error
-
setServerCertificate
Set server Certificate.- Parameters:
pServer- the server certificate- Returns:
- the new agreementParams
- Throws:
GordianException- on error
-
setSigner
Declare signer certificate.- Parameters:
pSigner- the certificate- Returns:
- the new agreementParams
- Throws:
GordianException- on error
-
setSigner
GordianAgreementParams setSigner(GordianCertificate pSigner, GordianSignatureSpec pSignSpec) throws GordianException Declare signer certificate and specification.- Parameters:
pSigner- the certificatepSignSpec- the signSpec- Returns:
- the new agreementParams
- Throws:
GordianException- on error
-
setAdditionalData
Set additional data.- Parameters:
pData- the additional data- Returns:
- the new agreementParams
- Throws:
GordianException- on error
-