org.jboss.aerogear.security.util
Class PKCS12Util
java.lang.Object
org.jboss.aerogear.security.util.PKCS12Util
public final class PKCS12Util
- extends Object
Small utility class to validate PKCS12
Note:
This class do not offer a deep level of security or check a trust chain of a certificate.
It only if the file provided is a valid PKCS12
|
Method Summary |
static void |
validate(byte[] cert,
String pass)
Check if the file provide is PKCS12 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
validate
public static void validate(byte[] cert,
String pass)
throws Exception
- Check if the file provide is PKCS12
- Parameters:
cert - certificate to be validatedpass - password to be provided
- Throws:
Exception - to indicate an invalid certificate
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.