Java Security Provider get key

Description

Java Security Provider get key

import java.security.Provider;
import java.security.Security;
import java.util.Iterator;

public class Main {

  public static void main(String[] args) {
    Provider[] providers = Security.getProviders();
    for (int i = 0; i != providers.length; i++) {
      Iterator<Object> it = providers[i].keySet().iterator();
      while (it.hasNext()) {
        System.out.println(it.next());
      }//from w w w. j  a v  a2 s . co  m
    }
  }
}



PreviousNext

Related