public class KeyAgreementMethodKeyInfoProvider extends AbstractKeyInfoProvider
KeyInfoProvider that returns the key agreement key that is derived using the information found in an
AgreementMethod using the decrypter's private EC key(s).
If the provider is instantiated without local credentials, it will only function if its
process(KeyInfoCredentialResolver, XMLObject, CriteriaSet, KeyInfoResolutionContext) method is invoked
with a KeyInfoCredentialResolver that is of LocalKeyInfoCredentialResolver. This is the typical
case.
Currently, the agreement method is supported along with the key derivation method .
| Constructor and Description |
|---|
KeyAgreementMethodKeyInfoProvider()
Constructor.
|
KeyAgreementMethodKeyInfoProvider(List<Credential> credentials)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
handles(XMLObject keyInfoChild) |
Collection<Credential> |
process(KeyInfoCredentialResolver resolver,
XMLObject keyInfoChild,
CriteriaSet criteriaSet,
KeyInfoResolutionContext kiContext) |
buildCredentialContext, extractKeyValuepublic KeyAgreementMethodKeyInfoProvider()
public KeyAgreementMethodKeyInfoProvider(@Nonnull @ParameterName(name="credentials") List<Credential> credentials)
credentials - the decrypter's private key credentials (only EC keys are valid)public boolean handles(XMLObject keyInfoChild)
public Collection<Credential> process(KeyInfoCredentialResolver resolver, XMLObject keyInfoChild, CriteriaSet criteriaSet, KeyInfoResolutionContext kiContext) throws SecurityException
SecurityExceptionCopyright © 2020 Sweden Connect. All rights reserved.