public class ExtendedKeyInfoSupport extends Object
KeyInfoSupport with support for EC keys.| Modifier and Type | Method and Description |
|---|---|
static void |
addPublicKey(KeyInfo keyInfo,
PublicKey pk)
Extends
KeyInfoSupport.addPublicKey(KeyInfo, PublicKey) with support for EC keys. |
static ECKeyValue |
buildECKeyValue(ECPublicKey ecPubKey)
Builds an
ECKeyValue XMLObject from the Java security EC public key type. |
public static void addPublicKey(@Nonnull KeyInfo keyInfo, @Nullable PublicKey pk) throws SecurityException
KeyInfoSupport.addPublicKey(KeyInfo, PublicKey) with support for EC keys.keyInfo - the KeyInfo element to which to add the keypk - the native Java PublicKey to addSecurityException - for incorrect public key encodings@Nonnull public static ECKeyValue buildECKeyValue(@Nonnull ECPublicKey ecPubKey) throws SecurityException
ECKeyValue XMLObject from the Java security EC public key type.ecPubKey - a native Java ECPublicKeyECKeyValue XMLObjectSecurityException - if the supplied public key is not encoded correctlyCopyright © 2020 Sweden Connect. All rights reserved.