All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.tsl2.nano.core.secure.PKI.class Maven / Gradle / Ivy

Go to download

TSL2 Framework Terminal (Console Application Framework named SIShell, providing Actions, Options, Commands, Inputs, lots of Selectors, PlatformManagement)

There is a newer version: 2.5.2
Show newest version
????4?
Z?	h?	h??



	f
h	





?









h

 !"	h#$
$?%
$&
$'
$()
*+
*,-
-.
/0
/12
34
1.
567????????849
h:	f;
h<
5=
>?
>@A
@B
@C
>D
@E
>F
hG
>H
@I
>JK
$L(M
hNO
hP
QRS
QT
QUV
5WX
VT
YZ
Q[\]^_`ab
cdef
hg
bhi
jklLOG Lorg/apache/commons/logging/Log;crypt Lde/tsl2/nano/core/secure/Crypt;issuer.Lde/tsl2/nano/core/secure/TrustedOrganisation;Q(Lde/tsl2/nano/core/secure/Crypt;Lde/tsl2/nano/core/secure/TrustedOrganisation;)VCodeLineNumberTableLocalVariableTablethisLde/tsl2/nano/core/secure/PKI;orgacreateCertificate7(Ljava/io/InputStream;)Ljava/security/cert/Certificate;certFactory'Ljava/security/cert/CertificateFactory;e)Ljava/security/cert/CertificateException;certEncodedLjava/io/InputStream;
StackMapTablecreateCertPath4(Ljava/io/InputStream;)Ljava/security/cert/CertPath;m(Lde/tsl2/nano/core/secure/TrustedOrganisation;Ljava/util/Date;Ljava/util/Date;)Ljava/security/cert/CertPath;	subjectDN	startDateLjava/util/Date;expiringDate?(Lde/tsl2/nano/core/secure/TrustedOrganisation;Lde/tsl2/nano/core/secure/TrustedOrganisation;Ljava/util/Date;Ljava/util/Date;Ljava/security/PublicKey;)Ljava/security/cert/CertPath;trustAnchorsLjava/util/Set;targetConstraints%Ljava/security/cert/X509CertSelector;params*Ljava/security/cert/PKIXBuilderParameters;Ljava/lang/Exception;issuerDNsubjectPublicKeyLjava/security/PublicKey;LocalVariableTypeTable1Ljava/util/Set;mnoF(Ljava/security/cert/CertPathParameters;)Ljava/security/cert/CertPath;cpb$Ljava/security/cert/CertPathBuilder;	cpbResult*Ljava/security/cert/CertPathBuilderResult;cpLjava/security/cert/CertPath;'Ljava/security/cert/CertPathParameters;verifyCertPathr(Ljava/security/cert/CertPath;Ljava/security/cert/CertPathParameters;)Ljava/security/cert/CertPathValidatorResult;	cpvResult,Ljava/security/cert/CertPathValidatorResult;cpv&Ljava/security/cert/CertPathValidator;pqrcreatePublicKey)([BLjava/lang/String;)Ljava/security/Key;
pubKeySpec'Ljava/security/spec/X509EncodedKeySpec;
keyFactoryLjava/security/KeyFactory;
encodedKey[B	algorithmLjava/lang/String;write9(Ljava/security/cert/Certificate;Ljava/io/OutputStream;)J1Ljava/security/cert/CertificateEncodingException;cert Ljava/security/cert/Certificate;outLjava/io/OutputStream;7,(Ljava/security/Key;Ljava/io/OutputStream;)JkeyLjava/security/Key;sign(Ljava/io/InputStream;)[Bdata3(Ljava/io/InputStream;Ljava/security/PrivateKey;)[B
privateKeyLjava/security/PrivateKey;B(Ljava/lang/String;Ljava/lang/String;Ljava/security/PrivateKey;)[BfileE(Ljava/io/InputStream;Ljava/lang/String;Ljava/security/PrivateKey;)[B	signatureLjava/security/Signature;bufinLjava/io/BufferedInputStream;bufferlenIsA?tu9verify(Ljava/io/InputStream;[B)ZE(Ljava/io/InputStream;[BLjava/security/PublicKey;Ljava/lang/String;)ZsigverifiesZcreateKeyStore()Ljava/security/KeyStore;.(Ljava/lang/String;[C)Ljava/security/KeyStore;password[C@(Ljava/lang/String;Ljava/lang/String;[C)Ljava/security/KeyStore;ksLjava/security/KeyStore;extypefisLjava/io/FileInputStream;Sv?wperistKeyStore?(Ljava/security/KeyStore;Ljava/lang/String;Ljava/lang/String;)VkeyStoremanual()Ljava/util/Map;	Signature7()Ljava/util/Map;main([Ljava/lang/String;)Vargs[Ljava/lang/String;()V
SourceFilePKI.javao?klmnX.509xyz{x'java/security/cert/CertificateException|}~???java/security/PublicKey??java/security/cert/TrustAnchorn??o????#java/security/cert/X509CertSelector????????????(java/security/cert/PKIXBuilderParameterso???????java/lang/ExceptionPKIX?y??????ijjava/lang/StringBuilderbuild passed, path contents: ???????ry???%java/security/spec/X509EncodedKeySpeco??y???java/io/ByteArrayInputStream??????/java/security/cert/CertificateEncodingException?java/security/PrivateKey????????sy???java/io/BufferedInputStreamo?????????????????signature verifies: ??????PKCS12??vy?java/io/FileInputStreamo???keystore created: ??java/io/FileOutputStreamu????java/lang/Objecthelp	this helpgencert=creates a certificate :  [issuer-dn] [public-key]vercert#verifies a certificate: ???de/tsl2/nano/core/ArgumentatorPKI??o?de/tsl2/nano/core/secure/Crypt???de/tsl2/nano/core/secure/PKI
java/util/Set,de/tsl2/nano/core/secure/TrustedOrganisationjava/util/Datejava/security/cert/CertPath%java/security/cert/CertPathParameters$java/security/cert/CertPathValidatorjava/security/Signaturejava/io/InputStreamjava/lang/Stringjava/security/KeyStorejava/lang/Throwable%java/security/cert/CertificateFactorygetInstance;(Ljava/lang/String;)Ljava/security/cert/CertificateFactory;generateCertificate"de/tsl2/nano/core/ManagedExceptionforward,(Ljava/lang/Throwable;)Ljava/lang/Throwable;generateCertPathtoString()Ljava/lang/String;0(Ljava/lang/String;Ljava/security/PublicKey;[B)Vjava/util/Collections	singleton#(Ljava/lang/Object;)Ljava/util/Set;toX500Principal*()Ljavax/security/auth/x500/X500Principal;	setIssuer+(Ljavax/security/auth/x500/X500Principal;)V
setSubjectsetSubjectPublicKey(Ljava/security/PublicKey;)VsetCertificateValid(Ljava/util/Date;)VsetKeyUsage([Z)V3(Ljava/util/Set;Ljava/security/cert/CertSelector;)VsetRevocationEnabled(Z)VsetDate"java/security/cert/CertPathBuilder8(Ljava/lang/String;)Ljava/security/cert/CertPathBuilder;buildS(Ljava/security/cert/CertPathParameters;)Ljava/security/cert/CertPathBuilderResult;(java/security/cert/CertPathBuilderResultgetCertPath()Ljava/security/cert/CertPath;append-(Ljava/lang/String;)Ljava/lang/StringBuilder;-(Ljava/lang/Object;)Ljava/lang/StringBuilder;org/apache/commons/logging/Logdebug(Ljava/lang/Object;)V:(Ljava/lang/String;)Ljava/security/cert/CertPathValidator;validate([B)Vjava/security/KeyFactory.(Ljava/lang/String;)Ljava/security/KeyFactory;generatePublic7(Ljava/security/spec/KeySpec;)Ljava/security/PublicKey;java/security/cert/Certificate
getEncoded()[Bde/tsl2/nano/core/util/FileUtil/(Ljava/io/InputStream;Ljava/io/OutputStream;Z)Jjava/security/KeygetFile)(Ljava/lang/String;)Ljava/io/InputStream;-(Ljava/lang/String;)Ljava/security/Signature;initSign(Ljava/security/PrivateKey;)V(Ljava/io/InputStream;)Vread([B)Iupdate([BII)Vclose
initVerify	available()I([B)Z(Z)Ljava/lang/StringBuilder;info,(Ljava/lang/String;)Ljava/security/KeyStore;(Ljava/lang/String;)Vload(Ljava/io/InputStream;[C)V-(Ljava/io/InputStream;Z)Ljava/io/InputStream;toCharArray()[Cstore(Ljava/io/OutputStream;[C)Vde/tsl2/nano/core/util/MapUtilasMap$([Ljava/lang/Object;)Ljava/util/Map;7(Ljava/lang/String;Ljava/util/Map;[Ljava/lang/String;)V de/tsl2/nano/core/log/LogFactorygetLog3(Ljava/lang/Class;)Lorg/apache/commons/logging/Log;!hZijklmnopqY*?*+?*,??rDE	FGs tuklvnwxq??M,+??M,?W?rQRS
TUs*yz
{|tu}~L?	??qv?L+*?	?L+?W?rabc
des yz
{|}~L???q]+*?,-*??
???rls*tu?n????	??q{|+??
Y+????:?Y?:+?+??*???-??YT??Y?:?,???:?W?qrrB	??$?(?1?:?A?G?S?`?f?l?r?t?z?s\	W??$N??`??t{?|?n|?n|??|??|???W??)@?????@??????	??q?8? L+*?!M,?"N?#?$Y?%&?'-?(?)?*-?L+?W?/0r"????.?0?1?6?s4*??$????1{?8??p?	??q?M?+M,*+?,N-?N-?W?r???????s4??{????????????	??q??-Y*?.M+?/N-,?0?M,?W?r?	?????s4	????{?????T?	??qy?1Y*?2?3+?4?M,?W6?5r????s 	{?????Q?	??qG?1Y*?8?3+?4?r?s??????qD*+*??
?9?:?r?stu?~??qK
+*??;,?N-,???@Y*?A:?:?BY6?-?C????D-?E?N-?W?=>r.??
???(?4?9?>???D?sR9??*??#??%???{?F?~F??F??%??????	??????qU+,*??
?*??;?F?r?s tu?~??	??q\	q-?>:,?G?@Y*?A:?:?H??B6?C????D+?I6?#?$Y?%J?'?K?)?L?:?W?fgr:
%.;@Hdgiosf
.
??a??Q??J??H??i{?q?~q??q??q??%?????+?????	??q?M?r"	??q<N*+?O?r&s????	??q?pN*?P:+??QY+?RN-,?S?#?$Y?%T?'?(?)?*:-?	-?UW?:?W:-?	-?UW?:-?	-?UW?<I<aITaacarN24567889<>@?F9I:K;Q<T>X?^<a>g?mAs>A??K??p??p??p??n??N????0??????????????????	??q?*?VY+?W,?X?Y?	N-?W?rNQOPRs*{???????S???q?'?ZY[SY\SY]SY^SY_SY`S?a?rU??	??q=?bYc?d*?eW?r
[\s????q!	f?g?#?r<??




© 2015 - 2024 Weber Informatics LLC | Privacy Policy