List of usage examples for org.bouncycastle.x509 X509CollectionStoreParameters X509CollectionStoreParameters
public X509CollectionStoreParameters(Collection collection)
From source file:cn.com.rexen.ext.shiro.authc.x509.X509AuthenticationToken.java
License:Open Source License
public X509Store getX509CertChainStore() { try {/*from w w w . j ava 2 s . c o m*/ 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 a va 2 s . com*/ 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; } }