PicketLink Federation Core 2.1.6.Final-redhat-2

org.picketlink.identity.federation.api.saml.v2.metadata
Class KeyDescriptorMetaDataBuilder

java.lang.Object
  extended by 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

Constructor Summary
KeyDescriptorMetaDataBuilder()
           
 
Method Summary
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyDescriptorMetaDataBuilder

public KeyDescriptorMetaDataBuilder()
Method Detail

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 signing
isEncryptionKey - 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:

PicketLink Federation Core 2.1.6.Final-redhat-2

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.