/libcore/ojluni/src/main/java/sun/security/jca/ |
H A D | ServiceId.java | 29 * 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;
|
H A D | GetInstance.java | 64 public static Service getService(String type, String algorithm) argument 67 Service s = list.getService(type, algorithm); 70 (algorithm + " " + type + " not available"); 75 public static Service getService(String type, String algorithm, argument 85 Service s = p.getService(type, algorithm); 87 throw new NoSuchAlgorithmException("no such algorithm: " 88 + algorithm + " for provider " + provider); 93 public static Service getService(String type, String algorithm, argument 98 Service s = provider.getService(type, algorithm); 100 throw new NoSuchAlgorithmException("no such algorithm 112 getServices(String type, String algorithm) argument 152 getInstance(String type, Class clazz, String algorithm) argument 184 getInstance(String type, Class clazz, String algorithm, Object param) argument 203 getInstance(String type, Class clazz, String algorithm, String provider) argument 209 getInstance(String type, Class clazz, String algorithm, Object param, String provider) argument 215 getInstance(String type, Class clazz, String algorithm, Provider provider) argument 221 getInstance(String type, Class clazz, String algorithm, Object param, Provider provider) argument [all...] |
/libcore/luni/src/main/java/org/apache/harmony/security/ |
H A D | PrivateKeyImpl.java | 33 private String algorithm; field in class:PrivateKeyImpl 37 public PrivateKeyImpl(String algorithm) { argument 38 this.algorithm = algorithm; 42 return algorithm; 57 public void setAlgorithm(String algorithm) { argument 58 this.algorithm = algorithm;
|
H A D | PublicKeyImpl.java | 37 private String algorithm; field in class:PublicKeyImpl 40 public PublicKeyImpl(String algorithm) { argument 41 this.algorithm = algorithm; 46 return algorithm; 62 public void setAlgorithm(String algorithm) { argument 63 this.algorithm = algorithm;
|
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/ |
H A D | PrivateKeyStub.java | 35 String algorithm = null; field in class:PrivateKeyStub 43 * @param algorithm 47 public PrivateKeyStub(String algorithm, String format, byte[] encoded) { argument 48 this.algorithm = algorithm; 54 * Returns algorithm 58 return algorithm;
|
H A D | PublicKeyStub.java | 38 String algorithm = null; field in class:PublicKeyStub 45 public PublicKeyStub(String algorithm, String format, byte[] encoded) { argument 46 this.algorithm = algorithm; 52 * returns algorithm 55 return algorithm;
|
H A D | MyMessageDigest1.java | 44 * @param algorithm 46 public MyMessageDigest1(String algorithm) { argument 47 super(algorithm);
|
H A D | MyKeyPairGenerator1.java | 95 private String algorithm; field in class:MyKeyPairGenerator1.PubKey 102 this.algorithm = "MyKeyPairGenerator1"; 108 return algorithm; 121 private String algorithm; field in class:MyKeyPairGenerator1.PrivKey 128 this.algorithm = "MyKeyPairGenerator1"; 134 return algorithm;
|
/libcore/ojluni/src/main/java/java/security/ |
H A D | AlgorithmParameterGenerator.java | 33 * 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 123 // The algorithm 124 private String algorithm; field in class:AlgorithmParameterGenerator 133 AlgorithmParameterGenerator(AlgorithmParameterGeneratorSpi paramGenSpi, Provider provider, String algorithm) argument 179 getInstance(String algorithm) argument 229 getInstance(String algorithm, String provider) argument 273 getInstance(String algorithm, Provider provider) argument [all...] |
H A D | AlgorithmParameters.java | 36 * for a particular algorithm can be obtained by 128 // The algorithm 129 private String algorithm; field in class:AlgorithmParameters 139 * @param algorithm the algorithm 142 Provider provider, String algorithm) 146 this.algorithm = algorithm; 150 * Returns the name of the algorithm associated with this parameter object. 152 * @return the algorithm nam 141 AlgorithmParameters(AlgorithmParametersSpi paramSpi, Provider provider, String algorithm) argument 188 getInstance(String algorithm) argument 238 getInstance(String algorithm, String provider) argument 283 getInstance(String algorithm, Provider provider) argument [all...] |
H A D | AlgorithmConstraints.java | 32 * 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 D | KeyRep.java | 91 * 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...] |
H A D | KeyPairGenerator.java | 43 * <p>A Key pair generator for a particular algorithm creates a public/private 44 * key pair that can be used with this algorithm. It also associates 45 * algorithm-specific parameters with each of the generated keys. 47 * <p>There are two ways to generate a key pair: in an algorithm-independent 48 * manner, and in an algorithm-specific manner. 55 * algorithms (e.g., in the case of the <i>DSA</i> algorithm, the keysize 68 * algorithm-independent <code>initialize</code> methods, it is up to the 69 * provider what to do about the algorithm-specific parameters (if any) to be 72 * <p>If the algorithm is the <i>DSA</i> algorithm, an 148 private final String algorithm; field in class:KeyPairGenerator 162 KeyPairGenerator(String algorithm) argument 179 getInstance(Instance instance, String algorithm) argument 219 getInstance(String algorithm) argument 283 getInstance(String algorithm, String provider) argument 320 getInstance(String algorithm, Provider provider) argument 567 Delegate(KeyPairGeneratorSpi spi, String algorithm) argument 572 Delegate(Instance instance, Iterator<Service> serviceIterator, String algorithm) argument [all...] |
H A D | SecureRandom.java | 61 * number generator (PRNG), which means they use a deterministic algorithm 87 * The SHA1PRNG algorithm from the Crypto provider has been deprecated as it was insecure, and also 118 * The algorithm name of null if unknown. 123 private String algorithm; field in class:SecureRandom 130 * default random number algorithm. 136 * Provider that supports a SecureRandom (RNG) algorithm is returned. 137 * If none of the Providers support a RNG algorithm, 146 * for information about standard RNG algorithm names. 167 * default random number algorithm. 174 * Provider that supports a SecureRandom (RNG) algorithm i 232 SecureRandom(SecureRandomSpi secureRandomSpi, Provider provider, String algorithm) argument 276 getInstance(String algorithm) argument 360 getInstance(String algorithm, String provider) argument 392 getInstanceFromCryptoProvider(String algorithm) argument 445 getInstance(String algorithm, Provider provider) argument [all...] |
/libcore/ojluni/src/main/java/javax/crypto/spec/ |
H A D | SecretKeySpec.java | 62 * 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...] |
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/spec/ |
H A D | SecretKeySpecTest.java | 38 * SecretKeySpec(byte[] key, String algorithm) method testing. Tests that 45 String algorithm = "Algorithm"; 48 new SecretKeySpec(new byte[] {}, algorithm); 55 new SecretKeySpec(null, algorithm); 64 + "in the case of null algorithm."); 68 SecretKeySpec ks = new SecretKeySpec(key, algorithm); 76 * SecretKeySpec(byte[] key, int offset, int len, String algorithm) method 85 String algorithm = "Algorithm"; 88 new SecretKeySpec(new byte[] {}, 0, 0, algorithm); 95 new SecretKeySpec(null, 0, 0, algorithm); [all...] |
/libcore/ojluni/src/main/java/java/security/cert/ |
H A D | CertPathBuilder.java | 46 * algorithm name of the {@code CertPathBuilder} desired and optionally 51 * passing it an algorithm-specific set of parameters. If successful, the 57 * additional algorithm-specific parameters and options used by the 59 * Here is an example demonstrating how it is used with the PKIX algorithm: 85 * This algorithm is described in the <a href= 123 private final String algorithm; field in class:CertPathBuilder 126 * Creates a {@code CertPathBuilder} object of the given algorithm, 131 * @param algorithm the algorithm name 134 String algorithm) 133 CertPathBuilder(CertPathBuilderSpi builderSpi, Provider provider, String algorithm) argument 169 getInstance(String algorithm) argument 212 getInstance(String algorithm, String provider) argument 249 getInstance(String algorithm, Provider provider) argument [all...] |
H A D | CertPathValidator.java | 47 * algorithm name of the {@code CertPathValidator} desired and 53 * and an algorithm-specific set of parameters. If successful, the result is 58 * additional algorithm-specific parameters and options used by the 61 * algorithm: 87 * This algorithm is described in the <a href= 124 private final String algorithm; field in class:CertPathValidator 127 * Creates a {@code CertPathValidator} object of the given algorithm, 132 * @param algorithm the algorithm name 135 Provider provider, String algorithm) 134 CertPathValidator(CertPathValidatorSpi validatorSpi, Provider provider, String algorithm) argument 170 getInstance(String algorithm) argument 213 getInstance(String algorithm, String provider) argument 251 getInstance(String algorithm, Provider provider) argument [all...] |
/libcore/ojluni/src/main/java/javax/net/ssl/ |
H A D | KeyManagerFactory.java | 49 // 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 D | TrustManagerFactory.java | 49 // 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...] |
/libcore/luni/src/test/java/libcore/javax/crypto/ |
H A D | KeyGeneratorTest.java | 49 // providing AndroidKeyStore-specific algorithm parameters. 56 String algorithm = service.getAlgorithm(); 59 KeyGenerator kg1 = KeyGenerator.getInstance(algorithm); 60 assertEquals(algorithm, kg1.getAlgorithm()); 64 KeyGenerator kg2 = KeyGenerator.getInstance(algorithm, provider); 65 assertEquals(algorithm, kg2.getAlgorithm()); 70 KeyGenerator kg3 = KeyGenerator.getInstance(algorithm, provider.getName()); 71 assertEquals(algorithm, kg3.getAlgorithm()); 75 throw new Exception("Problem testing KeyPairGenerator." + algorithm, e); 83 private static void putKeySize(String algorithm, in argument 92 getKeySizes(String algorithm) argument [all...] |
/libcore/ojluni/src/main/java/javax/crypto/ |
H A D | SecretKeyFactory.java | 216 // The algorithm associated with this factory 217 private final String algorithm; field in class:SecretKeyFactory 234 * @param algorithm the secret-key algorithm 237 Provider provider, String algorithm) { 240 this.algorithm = algorithm; 243 private SecretKeyFactory(String algorithm) throws NoSuchAlgorithmException { argument 244 this.algorithm = algorithm; 236 SecretKeyFactory(SecretKeyFactorySpi keyFacSpi, Provider provider, String algorithm) argument 285 getInstance(String algorithm) argument 328 getInstance(String algorithm, String provider) argument 369 getInstance(String algorithm, Provider provider) argument [all...] |
H A D | KeyAgreement.java | 78 * This algorithm is described in the <a href= 101 // The name of the key agreement algorithm. 102 private final String algorithm; field in class:KeyAgreement 111 * @param algorithm the algorithm 114 String algorithm) { 117 this.algorithm = algorithm; 121 private KeyAgreement(String algorithm) { argument 122 this.algorithm 113 KeyAgreement(KeyAgreementSpi keyAgreeSpi, Provider provider, String algorithm) argument 170 getInstance(String algorithm) argument 224 getInstance(String algorithm, String provider) argument 265 getInstance(String algorithm, Provider provider) argument 613 generateSecret(String algorithm) argument [all...] |
/libcore/ojluni/src/main/java/com/sun/net/ssl/internal/ssl/ |
H A D | X509ExtendedTrustManager.java | 49 * 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...] |
/libcore/luni/src/test/java/libcore/java/security/ |
H A D | MessageDigestTest.java | 63 String algorithm = service.getAlgorithm(); 66 MessageDigest md1 = MessageDigest.getInstance(algorithm); 67 assertEquals(algorithm, md1.getAlgorithm()); 71 MessageDigest md2 = MessageDigest.getInstance(algorithm, provider); 72 assertEquals(algorithm, md2.getAlgorithm()); 77 MessageDigest md3 = MessageDigest.getInstance(algorithm, provider.getName()); 78 assertEquals(algorithm, md3.getAlgorithm()); 82 throw new Exception("Problem testing MessageDigest." + algorithm, e); 90 private static void putExpectation(String algorithm, String inputName, byte[] expected) { argument 91 algorithm 99 getExpectations(String algorithm) argument 237 assertDigest(String algorithm, byte[] actual, byte[] expected) argument [all...] |