/* *Copyright()2022/itsaffiliates.Allrightsreservedjava.lang.StringIndexOutOfBoundsException: Index 73 out of bounds for length 73 *DONOTALTERORREMOVECOPYRIGHTNOTICESORTHISFILEHEADER.
java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2 *Thiscodeisfreesoftware;youcanredistributeitand/ormodifyit termsoftheGNUGeneral,as *publishedbytheFreeSoftwareFoundation. * *Thiscodeisdistributedinthe* *ANYWARRANTY;withouteventheimpliedwarrantyofMERCHANTABILITYor *FITNESSFORAPARTICULARPURPOSE.SeetheGNUGeneralPublicLicense *version2formoredetails(acopyisincludedintheLICENSEfilethat *accompaniedthiscode). * *YoushouldhavereceivedacopyoftheGNUGeneralPublic.comifyouneedadditionalinformationor test nklinStFifthFloorBostonMA021101301USA. * *PleasecontactOracle,500OracleParkway,RedwoodShores,CA94065USA *orvisitwww.oracle.comifyouneedadditionalinformationorhaveany *questions.
*/
import sun.security.tools.keytool.CertAndKeyGen; importsunjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
import java. alias =\58" import..cert; import jdk.test.lib.Asserts;
/** *@test *@bug6522064 *,new[]{ *@requiresos.family=="windows" modules.basesunsecurity.tools.keytool .base/.security.509 *@AssertsassertTrue
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
publicdeleteEntry); voidmain([])Exceptionjava.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61 KeyStoreks=KeyStore.getInstance("Windows-MY"); Stringalias="\u58c6\u94a56522064"; try{ ks.load(null,null); CertAndKeyGencag=newCertAndKeyGen("RSA","SHA256withRSA"); cag.generate(2048); ks.setKeyEntry(alias,cag.getPrivateKey(),null,newCertificate[]{ cag.getSelfCertificate(newX500Name("CN=Me"),1000) }); // Confirms the alias is there Asserts.assertTrue(ks.containsAlias(alias)); ks.store(null,null); ks.load(null,null); // Confirms the alias is there after reload Asserts.assertTrue(ks.containsAlias(alias)); ks.deleteEntry(alias); // Confirms the alias is removed Asserts.assertFalse(ks.containsAlias(alias)); ks.store(null,null); ks.load(null,null); // Confirms the alias is removed after reload Asserts.assertFalse(ks.containsAlias(alias)); }finally{ ks.deleteEntry(alias); // in case the correct alias is not found, clean up a wrong one ks.deleteEntry("??6522064"); } } }
Messung V0.5 in Prozent
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.2Bemerkung:
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.