link start!
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
package javax.baja.security.crypto;
|
||||
|
||||
import javax.baja.io.net.IClientSocketFactory;
|
||||
import javax.baja.io.net.IServerSocketFactory;
|
||||
|
||||
public interface ICryptoManager {
|
||||
IClientSocketFactory getClientSocketFactory(BSslTlsEnum bSslTlsEnum) throws Exception;
|
||||
|
||||
String getClientSocketFactoryClass(BSslTlsEnum bSslTlsEnum) throws Exception;
|
||||
|
||||
IKeyStore getKeyStore() throws Exception;
|
||||
|
||||
IServerSocketFactory getServerSocketFactory(BSslTlsEnum bSslTlsEnum, boolean z, String str) throws Exception;
|
||||
|
||||
IKeyStore getTrustStore() throws Exception;
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package javax.baja.security.crypto;
|
||||
|
||||
import javax.baja.io.net.IClientSocketFactory;
|
||||
import javax.baja.io.net.IServerSocketFactory;
|
||||
|
||||
public interface ICryptoManagerEx extends ICryptoManager {
|
||||
IClientSocketFactory getClientSocketFactory(String str) throws Exception;
|
||||
|
||||
String getClientSocketFactoryClass(String str) throws Exception;
|
||||
|
||||
IServerSocketFactory getServerSocketFactory(String str, boolean z, String str2) throws Exception;
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
package javax.baja.security.crypto;
|
||||
|
||||
import java.security.Key;
|
||||
import java.security.cert.X509Certificate;
|
||||
import java.util.Date;
|
||||
import java.util.Enumeration;
|
||||
|
||||
public interface IKeyStore {
|
||||
Enumeration aliases() throws Exception;
|
||||
|
||||
boolean containsAlias(String str) throws Exception;
|
||||
|
||||
void deleteEntries(String[] strArr) throws Exception;
|
||||
|
||||
void deleteEntry(String str) throws Exception;
|
||||
|
||||
String findCertificate(X509Certificate x509Certificate) throws Exception;
|
||||
|
||||
X509Certificate getCertificate(String str) throws Exception;
|
||||
|
||||
String getCertificateAlias(X509Certificate x509Certificate) throws Exception;
|
||||
|
||||
X509Certificate[] getCertificateChain(String str) throws Exception;
|
||||
|
||||
Enumeration getCertificates() throws Exception;
|
||||
|
||||
Date getCreationDate(String str) throws Exception;
|
||||
|
||||
Key getKey(String str, char[] cArr) throws Exception;
|
||||
|
||||
boolean isCertificateEntry(String str) throws Exception;
|
||||
|
||||
boolean isKeyEntry(String str) throws Exception;
|
||||
|
||||
void save() throws Exception;
|
||||
|
||||
void setCertificateEntry(String str, X509Certificate x509Certificate) throws Exception;
|
||||
|
||||
void setKeyEntry(String str, Key key, char[] cArr, X509Certificate[] x509CertificateArr) throws Exception;
|
||||
|
||||
void setKeyEntry(String str, byte[] bArr, X509Certificate[] x509CertificateArr) throws Exception;
|
||||
|
||||
int size() throws Exception;
|
||||
}
|
||||
Reference in New Issue
Block a user