org.picketlink.identity.federation.api.saml.v2.metadata
Class KeyDescriptorMetaDataBuilder
java.lang.Object
org.picketlink.identity.federation.api.saml.v2.metadata.KeyDescriptorMetaDataBuilder
public class KeyDescriptorMetaDataBuilder
- extends Object
MetaDataBuilder for the KeyDescriptor
- Since:
- Apr 20, 2009
- Author:
- Anil.Saldhana@redhat.com
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KeyDescriptorMetaDataBuilder
public KeyDescriptorMetaDataBuilder()
createKeyDescriptor
public static KeyDescriptorType createKeyDescriptor(Element keyInfo,
String algorithm,
int keySize,
boolean isSigningKey,
boolean isEncryptionKey)
- Create a Key Descriptor
- Parameters:
keyInfo
- algorithm
- keySize
- isSigningKey
- Whether the key is for signingisEncryptionKey
- Whether the key is for encryption
- Returns:
-
- Throws:
{@link
- IllegalArgumentException} when keyinfo is null
{@link
- IllegalArgumentException} when both the parameters "isSigningKey" and "isEncryptionKey" are same
createKeyDescriptor
public 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
- Parameters:
keyInfo
- algorithm
- keySize
-
- Returns:
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.