forked from I2P_Developers/i2p.i2p
javadoc note
This commit is contained in:
@ -458,7 +458,7 @@ public final class KeyStoreUtil {
|
||||
*
|
||||
* @param ks path to the keystore
|
||||
* @param alias the name of the key
|
||||
* @param cname e.g. randomstuff.console.i2p.net
|
||||
* @param cname e.g. localhost. Must be a hostname or email address. IP addresses will not be correctly encoded.
|
||||
* @param ou e.g. console
|
||||
* @param keyPW the key password, must be at least 6 characters
|
||||
*
|
||||
@ -482,7 +482,7 @@ public final class KeyStoreUtil {
|
||||
* @param ks path to the keystore
|
||||
* @param ksPW the keystore password
|
||||
* @param alias the name of the key
|
||||
* @param cname e.g. randomstuff.console.i2p.net
|
||||
* @param cname e.g. localhost. Must be a hostname or email address. IP addresses will not be correctly encoded.
|
||||
* @param ou e.g. console
|
||||
* @param validDays e.g. 3652 (10 years)
|
||||
* @param keyAlg e.g. DSA , RSA, EC
|
||||
@ -530,7 +530,7 @@ public final class KeyStoreUtil {
|
||||
* @param ks path to the keystore
|
||||
* @param ksPW the keystore password
|
||||
* @param alias the name of the key
|
||||
* @param cname e.g. randomstuff.console.i2p.net
|
||||
* @param cname e.g. localhost. Must be a hostname or email address. IP addresses will not be correctly encoded.
|
||||
* @param ou e.g. console
|
||||
* @param validDays e.g. 3652 (10 years)
|
||||
* @param keyAlg e.g. DSA , RSA, EC
|
||||
@ -578,7 +578,7 @@ public final class KeyStoreUtil {
|
||||
* @param ks path to the keystore
|
||||
* @param ksPW the keystore password
|
||||
* @param alias the name of the key
|
||||
* @param cname e.g. randomstuff.console.i2p.net
|
||||
* @param cname e.g. localhost. Must be a hostname or email address. IP addresses will not be correctly encoded.
|
||||
* @param ou e.g. console
|
||||
* @param validDays e.g. 3652 (10 years)
|
||||
* @param keyPW the key password, must be at least 6 characters
|
||||
|
@ -85,7 +85,7 @@ public final class SelfSignedGenerator {
|
||||
}
|
||||
|
||||
/**
|
||||
* @param cname the common name, non-null
|
||||
* @param cname the common name, non-null. Must be a hostname or email address. IP addresses will not be correctly encoded.
|
||||
* @param ou The OU (organizational unit) in the distinguished name, non-null before 0.9.28, may be null as of 0.9.28
|
||||
* @param o The O (organization)in the distinguished name, non-null before 0.9.28, may be null as of 0.9.28
|
||||
* @param l The L (city or locality) in the distinguished name, non-null before 0.9.28, may be null as of 0.9.28
|
||||
@ -514,6 +514,7 @@ public final class SelfSignedGenerator {
|
||||
int wrap3len = spaceFor(TRUE.length);
|
||||
int ext3len = oid3.length + TRUE.length + spaceFor(wrap3len);
|
||||
|
||||
// TODO if IP address, encode as 4 or 16 bytes
|
||||
byte[] cnameBytes = DataHelper.getASCII(cname);
|
||||
int wrap41len = spaceFor(cnameBytes.length);
|
||||
// only used for CA
|
||||
@ -620,6 +621,7 @@ public final class SelfSignedGenerator {
|
||||
idx = intToASN1(rv, idx, wrap4len);
|
||||
rv[idx++] = (byte) 0x30;
|
||||
idx = intToASN1(rv, idx, wrap41len);
|
||||
// TODO if IP address, encode as 0x87
|
||||
rv[idx++] = (byte) (isCA ? 0x82 : 0x81); // choice, dNSName or rfc822Name, IA5String implied
|
||||
idx = intToASN1(rv, idx, cnameBytes.length);
|
||||
System.arraycopy(cnameBytes, 0, rv, idx, cnameBytes.length);
|
||||
|
Reference in New Issue
Block a user