blob: b0bfe1707898bfbb447225cf55f3304e001c199c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
// Copyright 2018 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.athenz.tls;
import org.bouncycastle.jce.provider.BouncyCastleProvider;
import java.security.GeneralSecurityException;
import java.security.KeyStore;
import java.security.KeyStoreException;
/**
* @author bjorncs
* @deprecated Use com.yahoo.security.*
*/
@Deprecated
public enum KeyStoreType {
JKS {
KeyStore createKeystore() throws KeyStoreException {
return KeyStore.getInstance("JKS");
}
},
PKCS12 {
KeyStore createKeystore() throws KeyStoreException {
return KeyStore.getInstance("PKCS12", BouncyCastleProviderHolder.getInstance());
}
};
abstract KeyStore createKeystore() throws GeneralSecurityException;
}
|