Lines Matching refs:algorithm

41     private static final String PROPERTY_NAME = "ssl.TrustManagerFactory.algorithm";
47 * Returns the default algorithm name for the {@code TrustManagerFactory}. The
48 * default algorithm name is specified by the security property
49 * {@code 'ssl.TrustManagerFactory.algorithm'}.
51 * @return the default algorithm name.
54 String algorithm = Security.getProperty(PROPERTY_NAME);
55 return (algorithm != null ? algorithm : DEFAULT_PROPERTY);
60 * trust management algorithm.
62 * @param algorithm
63 * the name of the requested trust management algorithm.
64 * @return a trust manager factory for the requested algorithm.
66 * if no installed provider can provide the requested algorithm.
68 * if {@code algorithm} is {@code null} (instead of
71 public static final TrustManagerFactory getInstance(String algorithm)
73 if (algorithm == null) {
74 throw new NullPointerException("algorithm == null");
76 Engine.SpiAndProvider sap = ENGINE.getInstance(algorithm, null);
77 return new TrustManagerFactory((TrustManagerFactorySpi) sap.spi, sap.provider, algorithm);
82 * trust management algorithm from the specified provider.
84 * @param algorithm
85 * the name of the requested trust management algorithm name.
88 * algorithm.
89 * @return a trust manager factory for the requested algorithm.
92 * algorithm.
96 * if {@code algorithm} is {@code null} (instead of
99 public static final TrustManagerFactory getInstance(String algorithm, String provider)
108 return getInstance(algorithm, impProvider);
113 * trust management algorithm from the specified provider.
115 * @param algorithm
116 * the name of the requested key management algorithm name.
118 * the provider that provides the requested algorithm.
119 * @return a key manager factory for the requested algorithm.
122 * algorithm.
124 * if {@code algorithm} is {@code null} (instead of
127 public static final TrustManagerFactory getInstance(String algorithm, Provider provider)
132 if (algorithm == null) {
133 throw new NullPointerException("algorithm == null");
135 Object spi = ENGINE.getInstance(algorithm, provider, null);
136 return new TrustManagerFactory((TrustManagerFactorySpi) spi, provider, algorithm);
145 // Store used algorithm
146 private final String algorithm;
155 * @param algorithm
156 * the algorithm name.
159 String algorithm) {
161 this.algorithm = algorithm;
166 * Returns the name of this {@code TrustManagerFactory} algorithm
169 * @return the name of this {@code TrustManagerFactory} algorithm
173 return algorithm;