public class KeyAgreementCredential extends BasicCredential
| Constructor and Description |
|---|
KeyAgreementCredential(SecretKey secretKey,
PublicKey senderGeneratedPublicKey,
Credential peerCredential,
String agreementMethodAlgorith,
KeyDerivationMethod keyDerivationMethod)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAgreementMethodAlgorithm()
Returns the agreement method used for this credential.
|
Class<? extends Credential> |
getCredentialType() |
KeyDerivationMethod |
getKeyDerivationMethod()
Returns the key derivation method used when constructing the key agreement key.
|
Credential |
getPeerCredential()
Returns the peer credential.
|
PublicKey |
getSenderGeneratedPublicKey()
Returns the generated public key that is used for key derivation.
|
setEntityId, setPrivateKey, setPublicKey, setSecretKey, setUsageTypegetCredentialContextSet, getEntityId, getKeyNames, getPrivateKey, getPublicKey, getSecretKey, getUsageTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCredentialContextSet, getEntityId, getKeyNames, getPrivateKey, getPublicKey, getSecretKey, getUsageTypepublic KeyAgreementCredential(SecretKey secretKey, PublicKey senderGeneratedPublicKey, Credential peerCredential, String agreementMethodAlgorith, KeyDerivationMethod keyDerivationMethod)
secretKey - the key wrapping key (from the key agreement process)senderGeneratedPublicKey - the generated public key (for key derivation)peerCredential - the peer public certificateagreementMethodAlgorith - the agreement method used for this key agreement credentialkeyDerivationMethod - the key derivation method usedpublic Class<? extends Credential> getCredentialType()
getCredentialType in interface CredentialgetCredentialType in class BasicCredentialpublic PublicKey getSenderGeneratedPublicKey()
public Credential getPeerCredential()
public String getAgreementMethodAlgorithm()
public KeyDerivationMethod getKeyDerivationMethod()
Copyright © 2020 Sweden Connect. All rights reserved.