Searched defs:algorithm (Results 1 - 25 of 132) sorted by relevance

123456

/openjdk7/jdk/src/share/classes/sun/security/jca/
H A DServiceId.java29 * Simple class encapsulating a service type and algorithm for lookup.
38 public final String algorithm; field in class:ServiceId
40 public ServiceId(String type, String algorithm) { argument
42 this.algorithm = algorithm;
/openjdk7/jdk/test/java/security/KeyRep/
H A DSerialOld.java58 private static void deserializeTigerKey(String algorithm) throws Exception { argument
62 algorithm + ".1.5.key"));
66 private static void deserializeKey(String algorithm) throws Exception { argument
70 algorithm + ".pre.1.5.key"));
/openjdk7/jdk/test/javax/crypto/Mac/
H A DNullMacSpi.java45 public MyMac(MacSpi macSpi, Provider provider,String algorithm) { argument
46 super(macSpi, provider, algorithm);
/openjdk7/jdk/src/share/classes/java/security/
H A DAlgorithmConstraints.java32 * keys (key sizes), and other algorithm parameters.
43 * certificate in the certification path contains the required algorithm
55 * Determines whether an algorithm is granted permission for the
59 * @param algorithm the algorithm name
60 * @param parameters the algorithm parameters, or null if no additional
63 * @return true if the algorithm is permitted and can be used for all
66 * @throws IllegalArgumentException if primitives or algorithm is null
70 String algorithm, AlgorithmParameters parameters);
90 * Determines whether an algorithm an
69 permits(Set<CryptoPrimitive> primitives, String algorithm, AlgorithmParameters parameters) argument
105 permits(Set<CryptoPrimitive> primitives, String algorithm, Key key, AlgorithmParameters parameters) argument
[all...]
H A DAlgorithmParameterGenerator.java33 * parameters to be used with a certain algorithm. Parameter generators
38 * in two different ways: in an algorithm-independent manner, or in an
39 * algorithm-specific manner:
42 * <li>The algorithm-independent approach uses the fact that all parameter
45 * by all algorithm parameters, though it is interpreted differently
47 * the <i>DSA</i> algorithm, "size" corresponds to the size
49 * When using this approach, algorithm-specific parameter generation
54 * using algorithm-specific semantics, which are represented by a set of
55 * algorithm-specific parameter generation values. To generate
100 // The algorithm
101 private String algorithm; field in class:AlgorithmParameterGenerator
110 AlgorithmParameterGenerator(AlgorithmParameterGeneratorSpi paramGenSpi, Provider provider, String algorithm) argument
156 getInstance(String algorithm) argument
206 getInstance(String algorithm, String provider) argument
250 getInstance(String algorithm, Provider provider) argument
[all...]
H A DKeyRep.java91 * The Key algorithm
95 private String algorithm; field in class:KeyRep
117 * @param algorithm the algorithm returned from
126 * if algorithm is <code>null</code>,
130 public KeyRep(Type type, String algorithm, argument
133 if (type == null || algorithm == null ||
139 this.algorithm = algorithm;
150 * constructed using encoded key bytes and algorithm
[all...]
/openjdk7/jdk/test/sun/security/pkcs11/KeyAgreement/
H A DTestDH.java94 private static void testAlgorithm(KeyAgreement ka1, KeyPair kp1, KeyAgreement ka2, KeyPair kp2, String algorithm) throws Exception { argument
99 System.out.println("Derive " + algorithm + " using SunJCE...");
100 key1 = ka1.generateSecret(algorithm);
104 System.out.println("Derive " + algorithm + " using PKCS#11...");
105 SecretKey key2 = ka2.generateSecret(algorithm);
113 throw new Exception(algorithm + " secret mismatch");
/openjdk7/jdk/test/sun/security/pkcs11/ec/
H A DTestCurves.java94 private static void testSigning(Provider p, String algorithm, argument
96 // System.out.print(" " + algorithm);
97 Signature s = Signature.getInstance(algorithm, p);
102 s = Signature.getInstance(algorithm, p);
/openjdk7/jdk/src/share/classes/javax/net/ssl/
H A DKeyManagerFactory.java49 // The name of the key management algorithm.
50 private String algorithm; field in class:KeyManagerFactory
53 * Obtains the default KeyManagerFactory algorithm name.
55 * <p>The default algorithm can be changed at runtime by setting
56 * the value of the "ssl.KeyManagerFactory.algorithm" security
60 * to the desired algorithm name.
64 * @return the default algorithm name as specified in the
73 "ssl.KeyManagerFactory.algorithm");
87 * @param algorithm the algorithm
89 KeyManagerFactory(KeyManagerFactorySpi factorySpi, Provider provider, String algorithm) argument
137 getInstance(String algorithm) argument
180 getInstance(String algorithm, String provider) argument
218 getInstance(String algorithm, Provider provider) argument
[all...]
H A DTrustManagerFactory.java49 // The name of the trust management algorithm.
50 private String algorithm; field in class:TrustManagerFactory
53 * Obtains the default TrustManagerFactory algorithm name.
56 * the value of the "ssl.TrustManagerFactory.algorithm" security
59 * to the desired algorithm name.
61 * @return the default algorithm name as specified in the
70 "ssl.TrustManagerFactory.algorithm");
84 * @param algorithm the algorithm
87 Provider provider, String algorithm) {
86 TrustManagerFactory(TrustManagerFactorySpi factorySpi, Provider provider, String algorithm) argument
136 getInstance(String algorithm) argument
179 getInstance(String algorithm, String provider) argument
217 getInstance(String algorithm, Provider provider) argument
[all...]
/openjdk7/jdk/src/share/classes/java/security/cert/
H A DCertPathBuilder.java46 * algorithm name of the <code>CertPathBuilder</code> desired and optionally
51 * passing it an algorithm-specific set of parameters. If successful, the
57 * following standard <code>CertPathBuilder</code> algorithm:
61 * This algorithm is described in the <a href=
102 private String algorithm; field in class:CertPathBuilder
105 * Creates a <code>CertPathBuilder</code> object of the given algorithm,
110 * @param algorithm the algorithm name
113 String algorithm)
117 this.algorithm
112 CertPathBuilder(CertPathBuilderSpi builderSpi, Provider provider, String algorithm) argument
148 getInstance(String algorithm) argument
191 getInstance(String algorithm, String provider) argument
228 getInstance(String algorithm, Provider provider) argument
[all...]
H A DCertPathValidator.java47 * algorithm name of the <code>CertPathValidator</code> desired and
53 * and an algorithm-specific set of parameters. If successful, the result is
58 * following standard <code>CertPathValidator</code> algorithm:
62 * This algorithm is described in the <a href=
102 private String algorithm; field in class:CertPathValidator
105 * Creates a <code>CertPathValidator</code> object of the given algorithm,
110 * @param algorithm the algorithm name
113 Provider provider, String algorithm)
117 this.algorithm
112 CertPathValidator(CertPathValidatorSpi validatorSpi, Provider provider, String algorithm) argument
148 getInstance(String algorithm) argument
191 getInstance(String algorithm, String provider) argument
229 getInstance(String algorithm, Provider provider) argument
[all...]
/openjdk7/jdk/src/share/classes/javax/crypto/
H A DKeyAgreementSpi.java36 * of a particular key agreement algorithm.
67 * randomness. The given key is required to contain all the algorithm
70 * <p> If the key agreement algorithm requires random bytes, it gets them
73 * algorithm implementation does not require any random bytes,
83 * has an incompatible algorithm type.
90 * algorithm parameters, and source of randomness.
100 * has an incompatible algorithm type.
137 * private information and algorithm parameters will be used for
160 * private information and algorithm parameters will be used for
180 * of the requested algorithm typ
201 engineGenerateSecret(String algorithm) argument
[all...]
/openjdk7/jdk/src/share/classes/javax/crypto/spec/
H A DSecretKeySpec.java62 * The name of the algorithm associated with this key.
66 private String algorithm; field in class:SecretKeySpec
72 * secret key of the specified algorithm. For example, if the algorithm is
75 * In order for those checks to be performed, an algorithm-specific
82 * @param algorithm the name of the secret-key algorithm to be associated
87 * for information about standard algorithm names.
88 * @exception IllegalArgumentException if <code>algorithm</code>
91 public SecretKeySpec(byte[] key, String algorithm) { argument
140 SecretKeySpec(byte[] key, int offset, int len, String algorithm) argument
[all...]
/openjdk7/jdk/src/share/classes/com/sun/net/ssl/
H A DKeyManagerFactory.java51 // The name of the key management algorithm.
52 private String algorithm; field in class:KeyManagerFactory
82 * @param algorithm the algorithm
85 Provider provider, String algorithm) {
88 this.algorithm = algorithm;
92 * Returns the algorithm name of this <code>KeyManagerFactory</code> object.
98 * @return the algorithm name of this <code>KeyManagerFactory</code> object.
101 return this.algorithm;
84 KeyManagerFactory(KeyManagerFactorySpi factorySpi, Provider provider, String algorithm) argument
122 getInstance(String algorithm) argument
151 getInstance(String algorithm, String provider) argument
176 getInstance(String algorithm, Provider provider) argument
[all...]
H A DTrustManagerFactory.java51 // The name of the trust management algorithm.
52 private String algorithm; field in class:TrustManagerFactory
82 * @param algorithm the algorithm
85 Provider provider, String algorithm) {
88 this.algorithm = algorithm;
92 * Returns the algorithm name of this <code>TrustManagerFactory</code>
99 * @return the algorithm name of this <code>TrustManagerFactory</code>
103 return this.algorithm;
84 TrustManagerFactory(TrustManagerFactorySpi factorySpi, Provider provider, String algorithm) argument
124 getInstance(String algorithm) argument
153 getInstance(String algorithm, String provider) argument
178 getInstance(String algorithm, Provider provider) argument
[all...]
/openjdk7/jdk/src/share/classes/com/sun/net/ssl/internal/ssl/
H A DX509ExtendedTrustManager.java49 * algorithm. RFC2818 defines both the server identification and the
50 * client identification specification for "HTTPS" algorithm.
75 * The algorithm parameter specifies the client identification protocol
76 * to use. If the algorithm and the peer hostname are available, the
83 * @param algorithm the identification algorithm
91 String authType, String hostname, String algorithm)
100 * The authentication type is the key exchange algorithm portion
104 * The algorithm parameter specifies the server identification protocol
105 * to use. If the algorithm an
90 checkClientTrusted(X509Certificate[] chain, String authType, String hostname, String algorithm) argument
119 checkServerTrusted(X509Certificate[] chain, String authType, String hostname, String algorithm) argument
[all...]
/openjdk7/jdk/src/share/classes/com/sun/crypto/provider/
H A DSymmetricCipher.java62 * @param algorithm the algorithm name
68 abstract void init(boolean decrypting, String algorithm, byte[] key) argument
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/fastinfoset/algorithm/
H A DBuiltInEncodingAlgorithmState.java28 package com.sun.xml.internal.fastinfoset.algorithm;
H A DIEEE754FloatingPointEncodingAlgorithm.java28 package com.sun.xml.internal.fastinfoset.algorithm;
H A DIntegerEncodingAlgorithm.java28 package com.sun.xml.internal.fastinfoset.algorithm;
/openjdk7/jdk/test/sun/security/provider/MessageDigest/
H A DOffsets.java48 private static void test(String algorithm, int minOfs, int maxOfs, int minLen, int maxLen) throws Exception { argument
50 MessageDigest md = MessageDigest.getInstance(algorithm, "SUN");
51 System.out.println("Testing " + algorithm + "...");
71 throw new Exception("Digest mismatch " + algorithm + ", ofs: " + ofs + ", len: " + n);
/openjdk7/jdk/test/sun/security/rsa/
H A DTestKeyPairGenerator.java45 private static void testSignature(String algorithm, PrivateKey privateKey, PublicKey publicKey) throws Exception { argument
46 System.out.println("Testing " + algorithm + "...");
47 Signature s = Signature.getInstance(algorithm, provider);
H A DTestSignatures.java55 private static void testSignature(String algorithm, PrivateKey privateKey, PublicKey publicKey) throws Exception { argument
56 System.out.println("Testing " + algorithm + "...");
57 Signature s = Signature.getInstance(algorithm, provider);
/openjdk7/jdk/src/share/classes/sun/security/pkcs11/
H A DP11KeyPairGenerator.java58 // algorithm name
59 private final String algorithm; field in class:P11KeyPairGenerator
76 P11KeyPairGenerator(Token token, String algorithm, long mechanism) argument
80 this.algorithm = algorithm;
82 if (algorithm.equals("EC")) {
100 if (algorithm.equals("EC")) {
114 if (algorithm.equals("DH")) {
125 } else if (algorithm.equals("RSA")) {
137 } else if (algorithm
[all...]

Completed in 129 milliseconds

123456