Changeset 88c7abe for core


Ignore:
Timestamp:
Feb 19, 2018 10:26:32 PM (2 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
12c7871
Parents:
ad4eef9
Message:

javadoc note

Location:
core/java/src/net/i2p/crypto
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • core/java/src/net/i2p/crypto/KeyStoreUtil.java

    rad4eef9 r88c7abe  
    459459     *  @param ks path to the keystore
    460460     *  @param alias the name of the key
    461      *  @param cname e.g. randomstuff.console.i2p.net
     461     *  @param cname e.g. localhost. Must be a hostname or email address. IP addresses will not be correctly encoded.
    462462     *  @param ou e.g. console
    463463     *  @param keyPW the key password, must be at least 6 characters
     
    483483     *  @param ksPW the keystore password
    484484     *  @param alias the name of the key
    485      *  @param cname e.g. randomstuff.console.i2p.net
     485     *  @param cname e.g. localhost. Must be a hostname or email address. IP addresses will not be correctly encoded.
    486486     *  @param ou e.g. console
    487487     *  @param validDays e.g. 3652 (10 years)
     
    531531     *  @param ksPW the keystore password
    532532     *  @param alias the name of the key
    533      *  @param cname e.g. randomstuff.console.i2p.net
     533     *  @param cname e.g. localhost. Must be a hostname or email address. IP addresses will not be correctly encoded.
    534534     *  @param ou e.g. console
    535535     *  @param validDays e.g. 3652 (10 years)
     
    579579     *  @param ksPW the keystore password
    580580     *  @param alias the name of the key
    581      *  @param cname e.g. randomstuff.console.i2p.net
     581     *  @param cname e.g. localhost. Must be a hostname or email address. IP addresses will not be correctly encoded.
    582582     *  @param ou e.g. console
    583583     *  @param validDays e.g. 3652 (10 years)
  • core/java/src/net/i2p/crypto/SelfSignedGenerator.java

    rad4eef9 r88c7abe  
    8686
    8787    /**
    88      *  @param cname the common name, non-null
     88     *  @param cname the common name, non-null. Must be a hostname or email address. IP addresses will not be correctly encoded.
    8989     *  @param ou The OU (organizational unit) in the distinguished name, non-null before 0.9.28, may be null as of 0.9.28
    9090     *  @param o The O (organization)in the distinguished name, non-null before 0.9.28, may be null as of 0.9.28
     
    515515        int ext3len = oid3.length + TRUE.length + spaceFor(wrap3len);
    516516
     517        // TODO if IP address, encode as 4 or 16 bytes
    517518        byte[] cnameBytes = DataHelper.getASCII(cname);
    518519        int wrap41len = spaceFor(cnameBytes.length);
     
    621622        rv[idx++] = (byte) 0x30;
    622623        idx = intToASN1(rv, idx, wrap41len);
     624        // TODO if IP address, encode as 0x87
    623625        rv[idx++] = (byte) (isCA ? 0x82 : 0x81); // choice, dNSName or rfc822Name, IA5String implied
    624626        idx = intToASN1(rv, idx, cnameBytes.length);
Note: See TracChangeset for help on using the changeset viewer.