org.picketlink.identity.federation.api.util
Class KeyUtil
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KeyUtil
public KeyUtil()
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
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.