List of usage examples for org.bouncycastle.x509 X509Store getInstance
public static X509Store getInstance(String type, X509StoreParameters parameters, Provider provider) throws NoSuchStoreException
From source file:cn.com.rexen.ext.shiro.authc.x509.X509AuthenticationToken.java
License:Open Source License
public X509Store getX509CertChainStore() { try {//ww w . j a v a 2s. c om X509CollectionStoreParameters params = new X509CollectionStoreParameters(Arrays.asList(certChain)); return X509Store.getInstance("CERTIFICATE/COLLECTION", params, BouncyCastleProvider.PROVIDER_NAME); } catch (NoSuchStoreException ex) { return null; } catch (NoSuchProviderException ex) { return null; } }
From source file:org.qi4j.library.shiro.authc.X509AuthenticationToken.java
License:Open Source License
public X509Store getClientCertChainStore() { try {/*from w w w . j av a 2 s. c o m*/ X509CollectionStoreParameters params = new X509CollectionStoreParameters( Arrays.asList(clientX509CertChain)); return X509Store.getInstance("CERTIFICATE/COLLECTION", params, BouncyCastleProvider.PROVIDER_NAME); } catch (NoSuchStoreException ex) { return null; } catch (NoSuchProviderException ex) { return null; } }