Class CertificateManager
java.lang.Object
pro.gravit.launchserver.manangers.CertificateManager
-
Field Summary
FieldsModifier and TypeFieldDescriptionorg.bouncycastle.cert.X509CertificateHolderDeprecated.org.bouncycastle.crypto.params.AsymmetricKeyParameterDeprecated.intDeprecated.Deprecated.org.bouncycastle.cert.X509CertificateHolderDeprecated.org.bouncycastle.crypto.params.AsymmetricKeyParameterDeprecated.pro.gravit.launcher.LauncherTrustManagerintDeprecated. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionpro.gravit.launcher.LauncherTrustManager.CheckClassResultcheckClass(Class<?> clazz)voidcheckClass(Class<?> clazz, pro.gravit.launcher.LauncherTrustManager.CheckMode mode)Deprecated.voidDeprecated.org.bouncycastle.cert.X509CertificateHoldergenerateCertificate(String subjectName, PublicKey subjectPublicKey)Deprecated.Deprecated.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
-
validDays
Deprecated.- See Also:
- Constant Field Values
-
minusHours
Deprecated.- See Also:
- Constant Field Values
-
ca
Deprecated. -
caKey
Deprecated. -
server
Deprecated. -
serverKey
Deprecated. -
trustManager
public pro.gravit.launcher.LauncherTrustManager trustManager -
orgName
Deprecated.
-
-
Constructor Details
-
CertificateManager
public CertificateManager()
-
-
Method Details
-
generateCertificate
@Deprecated public org.bouncycastle.cert.X509CertificateHolder generateCertificate(String subjectName, PublicKey subjectPublicKey) throws org.bouncycastle.operator.OperatorCreationExceptionDeprecated.- Throws:
org.bouncycastle.operator.OperatorCreationException
-
generateCA
@Deprecated public void generateCA() throws NoSuchAlgorithmException, IOException, org.bouncycastle.operator.OperatorCreationException, InvalidAlgorithmParameterExceptionDeprecated.- Throws:
NoSuchAlgorithmExceptionIOExceptionorg.bouncycastle.operator.OperatorCreationExceptionInvalidAlgorithmParameterException
-
generateKeyPair
@Deprecated public KeyPair generateKeyPair() throws InvalidAlgorithmParameterException, NoSuchAlgorithmExceptionDeprecated. -
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
@Deprecated public void checkClass(Class<?> clazz, pro.gravit.launcher.LauncherTrustManager.CheckMode mode) throws SecurityExceptionDeprecated.- Throws:
SecurityException
-
checkClass
-