Tabnine Logo
SSLUtils.checkCertificateDates
Code IndexAdd Tabnine to your IDE (free)

How to use
checkCertificateDates
method
in
com.sun.enterprise.security.ssl.SSLUtils

Best Java code snippets using com.sun.enterprise.security.ssl.SSLUtils.checkCertificateDates (Showing top 2 results out of 315)

origin: org.glassfish.security/securitycommon

private void initTrustManagers(KeyStore[] tstores) throws Exception {
  ArrayList trustManagers = new ArrayList();
  for (KeyStore tstore : tstores) {
    checkCertificateDates(tstore);
    TrustManagerFactory tmf = TrustManagerFactory.getInstance(
        TrustManagerFactory.getDefaultAlgorithm());
    tmf.init(tstore);
    TrustManager[] tmgrs = tmf.getTrustManagers();
    if (tmgrs != null)
      trustManagers.addAll(Arrays.asList(tmgrs));
  }
  if (trustManagers.size() == 1) {
    trustManager = (TrustManager)trustManagers.get(0);
  } else {
    trustManager = new UnifiedX509TrustManager((X509TrustManager [])trustManagers.toArray(new X509TrustManager[trustManagers.size()]));
  }
}
origin: org.glassfish.security/securitycommon

private void initKeyManagers(KeyStore[] kstores, String[] pwds)
    throws Exception {
  ArrayList<KeyManager> keyManagers = new ArrayList<KeyManager>();
  for (int i = 0; i < kstores.length; i++) {
    checkCertificateDates(kstores[i]);
  KeyManagerFactory kmf = KeyManagerFactory.getInstance(
        KeyManagerFactory.getDefaultAlgorithm());
  kmf.init(kstores[i], pwds[i].toCharArray());
    KeyManager[] kmgrs = kmf.getKeyManagers();
    if (kmgrs != null)
      keyManagers.addAll(Arrays.asList(kmgrs));
  }
  keyManager = new UnifiedX509KeyManager(
      keyManagers.toArray(new X509KeyManager[keyManagers.size()]),
    secSupp.getTokenNames());
}
 
com.sun.enterprise.security.sslSSLUtilscheckCertificateDates

Popular methods of SSLUtils

  • getKeyManagers
  • getTrustManagers
  • <init>
  • checkPermission
  • getKeyStores
  • getSupportedCipherSuites
  • getTrustStores
  • mergingTrustStores
  • postConstruct
  • setAppclientSsl
  • getAdminSSLContext
  • getAdminSocketFactory
  • getAdminSSLContext,
  • getAdminSocketFactory,
  • getKeyStore,
  • getMergedTrustStore,
  • getPrivateKeyEntryFromTokenAlias,
  • getSSLContext,
  • getTrustStore,
  • verifyMasterPassword,
  • getKeyStorePass

Popular in Java

  • Making http requests using okhttp
  • getContentResolver (Context)
  • startActivity (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • JLabel (javax.swing)
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now