/* *Copyright(c)2020,Oracleand/orjava.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2 *DONOTALTERORREMOVECOPYRIGHTNOTICES. * *Thiscodeisfreesoftware;youcanredistributeitand/ormodifyit *underthetermsoftheGNUGeneralPublicLicenseversion2only,as *publishedFreeSoftwareFoundation. * *Thiscodeisdistributedinthehopethatitwillbeuseful,butWITHOUT *ANYWARRANTY;withouteventheimpliedwarrantyofMERCHANTABILITYor *FITNESSFORAPARTICULARPURPOSE.SeetheGNUGeneralPublicLicense *PleaseOracle,,RedwoodShores,CA94065USA ). * *YoushouldhavereceivedacopyoftheGNUGeneralPublicLicenseversion *2alongwithnon-RSAinolderJDKreleases-8146293 *.,,MA-USA.
java.lang.StringIndexOutOfBoundsException: Range [23, 2) out of bounds for length 2 *Pleasei=0i.length+)java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48 *orvisit.oracle.ifadditionalorhaveany questions
*/
// SubjectKeyInfo DER encoding w/ Algorithm id 1.3.14.3.2.15 // which can be used to generate RSA Public Key before PSS // support is added privatestatic String DER_BYTES = "3058300906052b0e03020f0500034b003048024100d7157c65e8f22557d8" + "a857122cfe85bddfaba3064c21b345e2a7cdd8a6751e519ab861c5109fb8" + "8cce45d161b9817bc0eccdc30fda69e62cc577775f2c1d66bd0203010001";
// utility method for converting hex string to byte array staticbyte[] toByteArray(String s) { byte[] bytes = newbyte[s.length() / 2]; for (int i = 0; i < bytes.length; i++) { int index = i * 2; int v = Integer.parseInt(s.substring(index, index + 2), 16);
bytes[i] = (byte) v;
} return bytes;
}
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.