public class KeyUtil extends Object
| Constructor and Description |
|---|
KeyUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
encodeAsString(Certificate certificate)
Base64 encode the certificate
|
static Element |
getKeyInfo(Certificate certificate)
Given a certificate, build a keyinfo type
|
public static String encodeAsString(Certificate certificate) throws CertificateEncodingException
certificate - CertificateEncodingExceptionpublic static Element getKeyInfo(Certificate certificate) throws CertificateException, ConfigurationException, ParsingException, ProcessingException
certificate - CertificateExceptionProcessingExceptionParsingExceptionConfigurationExceptionCopyright © 2012 JBoss by Red Hat. All Rights Reserved.