public class KeyDescriptorMetaDataBuilder extends Object
Constructor and Description |
---|
KeyDescriptorMetaDataBuilder() |
Modifier and Type | Method and Description |
---|---|
static KeyDescriptorType |
createKeyDescriptor(Element keyInfo,
String algorithm,
int keySize)
Create a key descriptor that specifies an algorithm but does not specify whether the key is for signing or
encryption
|
static KeyDescriptorType |
createKeyDescriptor(Element keyInfo,
String algorithm,
int keySize,
boolean isSigningKey,
boolean isEncryptionKey)
Create a Key Descriptor
|
public static KeyDescriptorType createKeyDescriptor(Element keyInfo, String algorithm, int keySize, boolean isSigningKey, boolean isEncryptionKey)
keyInfo
- algorithm
- keySize
- isSigningKey
- Whether the key is for signingisEncryptionKey
- Whether the key is for encryption{@link
- IllegalArgumentException} when keyinfo is null{@link
- IllegalArgumentException} when both the parameters "isSigningKey" and "isEncryptionKey" are samepublic static KeyDescriptorType createKeyDescriptor(Element keyInfo, String algorithm, int keySize)
keyInfo
- algorithm
- keySize
- Copyright © 2018 JBoss by Red Hat. All rights reserved.