Class CertificateManager
java.lang.Object
pro.gravit.launchserver.manangers.CertificateManager
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionpro.gravit.launcher.core.LauncherTrustManager.CheckClassResultcheckClass(Class<?> clazz) org.bouncycastle.cert.X509CertificateHolderreadCertificate(Reader reader) org.bouncycastle.cert.X509CertificateHolderreadCertificate(Path file) org.bouncycastle.crypto.params.AsymmetricKeyParameterreadPrivateKey(Reader reader) org.bouncycastle.crypto.params.AsymmetricKeyParameterreadPrivateKey(Path file) voidreadTrustStore(Path dir) voidwriteCertificate(Writer writer, org.bouncycastle.cert.X509CertificateHolder holder) voidwriteCertificate(Path file, org.bouncycastle.cert.X509CertificateHolder holder) voidwritePrivateKey(Writer writer, PrivateKey privateKey) voidwritePrivateKey(Writer writer, org.bouncycastle.crypto.params.AsymmetricKeyParameter key) voidwritePrivateKey(Path file, PrivateKey privateKey) voidwritePrivateKey(Path file, org.bouncycastle.crypto.params.AsymmetricKeyParameter key)
-
Field Details
-
trustManager
public pro.gravit.launcher.core.LauncherTrustManager trustManager
-
-
Constructor Details
-
CertificateManager
public CertificateManager()
-
-
Method Details
-
writePrivateKey
- Throws:
IOException
-
writePrivateKey
- Throws:
IOException
-
writePrivateKey
public void writePrivateKey(Path file, org.bouncycastle.crypto.params.AsymmetricKeyParameter key) throws IOException - Throws:
IOException
-
writePrivateKey
public void writePrivateKey(Writer writer, org.bouncycastle.crypto.params.AsymmetricKeyParameter key) throws IOException - Throws:
IOException
-
writeCertificate
public void writeCertificate(Path file, org.bouncycastle.cert.X509CertificateHolder holder) throws IOException - Throws:
IOException
-
writeCertificate
public void writeCertificate(Writer writer, org.bouncycastle.cert.X509CertificateHolder holder) throws IOException - Throws:
IOException
-
readPrivateKey
public org.bouncycastle.crypto.params.AsymmetricKeyParameter readPrivateKey(Path file) throws IOException - Throws:
IOException
-
readPrivateKey
public org.bouncycastle.crypto.params.AsymmetricKeyParameter readPrivateKey(Reader reader) throws IOException - Throws:
IOException
-
readCertificate
- Throws:
IOException
-
readCertificate
public org.bouncycastle.cert.X509CertificateHolder readCertificate(Reader reader) throws IOException - Throws:
IOException
-
readTrustStore
- Throws:
IOExceptionCertificateException
-
checkClass
-