Java 8 X509TrustManager - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Java 8 X509TrustManager class.

This code example shows how to use the following methods:getAcceptedIssuers
  @Override 
  public X509Certificate[] getAcceptedIssuers() {
    X509Certificate[] issuers = EMPTY;
    X509TrustManager tm = trustManagerRef.get();
    if (tm != null) {
      issuers = tm.getAcceptedIssuers();
    } 
    return issuers;
  } 
 
  boolean needsReload() { 
    boolean reload = true;
    if (file.exists()) {
      if (file.lastModified() == lastLoaded) {
        reload = false;
      } 
    } else { 
      lastLoaded = 0;
    } 
    return reload;
6
CodeRank
This code example shows how to use the following methods:getAcceptedIssuers
            } 
            throw new CertificateException("Certificate domain name does not match " + mHost);
        } 
 
        public X509Certificate[] getAcceptedIssuers() {
            return defaultTrustManager.getAcceptedIssuers();
        } 
 
    } 
 
    static { 
        java.io.InputStream fis = null;
        try { 
            javax.net.ssl.TrustManagerFactory tmf = javax.net.ssl.TrustManagerFactory
                    .getInstance("X509");
            Application app = MainApplication.app;
            keyStoreFile = new File(app.getDir("KeyStore", Context.MODE_PRIVATE) + File.separator
                    + "KeyStore.bks"); 
            keyStore = KeyStore.getInstance(KeyStore.getDefaultType());
            try { 
5
CodeRank
This code example shows how to use the following methods:getAcceptedIssuers
  { 
  } 
 
  public X509Certificate[] getAcceptedIssuers()
  { 
    return this.nativeTm.getAcceptedIssuers();
  } 
} 
 
/* Location:           /Users/admin/.m2/repository/com/alibaba/external/jdbc.oracle/10.2.0.2/jdbc.oracle-10.2.0.2.jar 
 * Qualified Name:     oracle.net.jndi.TrustManager 
 * JD-Core Version:    0.6.0 
 */ 
4
CodeRank
This code example shows how to use the following methods:getAcceptedIssuers
        this.defaultTrustManager = defaultTrustManager;
    } 
 
    @Override 
    public X509Certificate[] getAcceptedIssuers() {
        return this.defaultTrustManager.getAcceptedIssuers();
    } 
 
    @Override 
    public void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException {
    } 
 
    @Override 
    public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException {
    } 
} 
4
CodeRank
This code example shows how to use the following methods:getAcceptedIssuers
     
    /** 
     * Get the accepted issuers 
     */ 
    public X509Certificate[] getAcceptedIssuers() {
        return mDefaultTrustManager.getAcceptedIssuers();
    } 
} 
4
CodeRank
This code example shows how to use the following methods:getAcceptedIssuers
	} 
 
	@Override 
	public X509Certificate[] getAcceptedIssuers() {
		if (defaultManager != null) {
			return defaultManager.getAcceptedIssuers();
		} 
		return null; 
	} 
	@Override 
	public boolean verify(String hostname, SSLSession session) {
		if (certDelegate != null) {
			return certDelegate.checkHostnameTrusted(hostname, session);
		} 
		 
		if (defaultVerifier != null && defaultVerifier.verify(hostname, session)) {
				return true; 
		} 
		 
		return false; 
4
CodeRank
This code example shows how to use the following methods:getAcceptedIssuers
 
  /* 
   * Merely pass this through. 
   */ 
  public X509Certificate[] getAcceptedIssuers() {
    return sunJSSEX509TrustManager.getAcceptedIssuers();
  } 
 
} 
4
CodeRank
This code example shows how to use the following methods:getAcceptedIssuers
 
     /* 
      * Merely pass this through. 
      */ 
     public X509Certificate[] getAcceptedIssuers() {
         return pkixTrustManager.getAcceptedIssuers();
     } 
} 
4
CodeRank
This code example shows how to use the following methods:getAcceptedIssuers
	 * Merely pass this through. 
	 */ 
	public X509Certificate[] getAcceptedIssuers() {
		if (pkixTrustManager == null)
			return new X509Certificate[0];
		return pkixTrustManager.getAcceptedIssuers();
	} 
} 
4
CodeRank
This code example shows how to use the following methods:getAcceptedIssuers
    /** 
     * @see javax.net.ssl.X509TrustManager#getAcceptedIssuers() 
     */ 
    public X509Certificate[] getAcceptedIssuers()
    { 
        return this.standardTrustManager.getAcceptedIssuers();
    } 
 
} 
4
CodeRank

Related Java 8 X509TrustManager Questions & Answers:

See Code Examples for Java 8 X509TrustManager Methods: