java.security.Provider.keys()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(2.2k)|赞(0)|评价(0)|浏览(94)

本文整理了Java中java.security.Provider.keys()方法的一些代码示例,展示了Provider.keys()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Provider.keys()方法的具体详情如下:
包路径:java.security.Provider
类名称:Provider
方法名:keys

Provider.keys介绍

暂无

代码示例

代码示例来源:origin: stackoverflow.com

Provider provider[] = Security.getProviders();
for (Provider pro : provider) {
  System.out.println(pro);
  for (Enumeration e = pro.keys(); e.hasMoreElements();)
    System.out.println("\t" + e.nextElement());

}

代码示例来源:origin: stackoverflow.com

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

/**
 *
 * @author alukasiewicz
 */
public class TestSignature {

  public static void print() throws Exception {
  try {
    Provider p[] = Security.getProviders();
   for (int i = 0; i < p.length; i++) {
     System.out.println(p[i]);
     for (Enumeration e = p[i].keys(); e.hasMoreElements();)
       System.out.println("\t" + e.nextElement());
   }
  } catch (Exception e) {
   System.out.println(e);
  }
 }
}

代码示例来源:origin: stackoverflow.com

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

public class MainClass {
 public static void main(String[] args) throws Exception {
  try {
   Provider p[] = Security.getProviders();
   for (int i = 0; i < p.length; i++) {
     System.out.println(p[i]);
     for (Enumeration e = p[i].keys(); e.hasMoreElements();)
       System.out.println("\t" + e.nextElement());
   }
  } catch (Exception e) {
   System.out.println(e);
  }
 }
}

代码示例来源:origin: stackoverflow.com

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

public class TestSslProviders {
 public static void main(String[] args) throws Exception {
  try {
   Provider p[] = Security.getProviders();
   for (int i = 0; i < p.length; i++) {
     System.out.println(p[i]);
     for (Enumeration e = p[i].keys(); e.hasMoreElements();)
       System.out.println("\t" + e.nextElement());
   }
  } catch (Exception e) {
   System.out.println(e);
  }
 }
}

代码示例来源:origin: org.apache.wss4j/wss4j-ws-security-common

public Enumeration<Object> keys() {
  Provider p = getProvider();
  if (p != null) {
    return p.keys();
  } else {
    return Collections.emptyEnumeration();
  }
}

代码示例来源:origin: tiandawu/IotXmpp

for (int i = 0; i < pp.length; i++) {
  String prName = pp[i].getName();
  Enumeration<Object> keys = pp[i].keys();
  while (keys.hasMoreElements()) {
    String s = (String) keys.nextElement();

相关文章