PicketLink Federation Core 2.1.6.Final-redhat-2

org.picketlink.identity.federation.api.util
Class KeyUtil

java.lang.Object
  extended by org.picketlink.identity.federation.api.util.KeyUtil

public class KeyUtil
extends Object

Utility dealing with PublicKey/Certificates and xml-dsig KeyInfoType

Since:
Apr 29, 2009
Author:
Anil.Saldhana@redhat.com

Constructor Summary
KeyUtil()
           
 
Method Summary
static String encodeAsString(Certificate certificate)
          Base64 encode the certificate
static Element getKeyInfo(Certificate certificate)
          Given a certificate, build a keyinfo type
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyUtil

public KeyUtil()
Method Detail

encodeAsString

public static String encodeAsString(Certificate certificate)
                             throws CertificateEncodingException
Base64 encode the certificate

Parameters:
certificate -
Returns:
Throws:
CertificateEncodingException

getKeyInfo

public static Element getKeyInfo(Certificate certificate)
                          throws CertificateException,
                                 ConfigurationException,
                                 ParsingException,
                                 ProcessingException
Given a certificate, build a keyinfo type

Parameters:
certificate -
Returns:
Throws:
CertificateException
ProcessingException
ParsingException
ConfigurationException

PicketLink Federation Core 2.1.6.Final-redhat-2

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