link start!

This commit is contained in:
cherubin
2026-03-17 13:31:18 -07:00
commit 08abe87cfb
5910 changed files with 386288 additions and 0 deletions
@@ -0,0 +1,5 @@
package javax.baja.security;
public interface Auditor {
void audit(AuditEvent auditEvent);
}
@@ -0,0 +1,13 @@
package javax.baja.security;
public interface AuthenticationRealm {
String getAuthenticationRealmName();
String getAuthenticationScheme();
BICredentials getCredentials();
BICredentials makeCredentials();
void setCredentials(BICredentials bICredentials);
}
@@ -0,0 +1,7 @@
package javax.baja.security;
public interface DigestFactory {
byte[] getNonce();
byte[] makeDigest(String str, String str2);
}
@@ -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;
}