aerogear-security 1.3.1

org.jboss.aerogear.security.util
Class PKCS12Util

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

Method Detail

validate

public static void validate(byte[] cert,
                            String pass)
                     throws Exception
Check if the file provide is PKCS12

Parameters:
cert - certificate to be validated
pass - password to be provided
Throws:
Exception - to indicate an invalid certificate

aerogear-security 1.3.1

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