< prev index next >

src/share/classes/sun/security/x509/X500Name.java

Print this page
rev 13439 : 8213952: Relax DNSName restriction as per RFC 1123
Reviewed-by: weijun, mullan, chegar


1202 
1203     /** OID for the "INITIALS=" attribute, denoting a person's initials.*/
1204         INITIALS_OID = intern(ObjectIdentifier.newInternal(INITIALS_DATA));
1205 
1206     /** OID for the "GENERATION=" attribute, denoting Jr., II, etc.*/
1207         GENERATIONQUALIFIER_OID =
1208             intern(ObjectIdentifier.newInternal(GENERATIONQUALIFIER_DATA));
1209 
1210     /*
1211      * OIDs from other sources which show up in X.500 names we
1212      * expect to deal with often
1213      */
1214     /** OID for "IP=" IP address attributes, used with SKIP. */
1215         ipAddress_oid = intern(ObjectIdentifier.newInternal(ipAddress_data));
1216 
1217     /*
1218      * Domain component OID from RFC 1274, RFC 2247, RFC 3280
1219      */
1220 
1221     /*
1222      * OID for "DC=" domain component attributes, used with DNS names in DN
1223      * format
1224      */
1225         DOMAIN_COMPONENT_OID =
1226             intern(ObjectIdentifier.newInternal(DOMAIN_COMPONENT_DATA));
1227 
1228     /** OID for "UID=" denoting a user id, defined in RFCs 1274 & 2798. */
1229         userid_oid = intern(ObjectIdentifier.newInternal(userid_data));
1230     }
1231 
1232     /**
1233      * Return constraint type:<ul>
1234      *   <li>NAME_DIFF_TYPE = -1: input name is different type from this name
1235      *       (i.e. does not constrain)
1236      *   <li>NAME_MATCH = 0: input name matches this name
1237      *   <li>NAME_NARROWS = 1: input name narrows this name
1238      *   <li>NAME_WIDENS = 2: input name widens this name
1239      *   <li>NAME_SAME_TYPE = 3: input name does not match or narrow this name,
1240      &       but is same type
1241      * </ul>.  These results are used in checking NameConstraints during
1242      * certification path verification.




1202 
1203     /** OID for the "INITIALS=" attribute, denoting a person's initials.*/
1204         INITIALS_OID = intern(ObjectIdentifier.newInternal(INITIALS_DATA));
1205 
1206     /** OID for the "GENERATION=" attribute, denoting Jr., II, etc.*/
1207         GENERATIONQUALIFIER_OID =
1208             intern(ObjectIdentifier.newInternal(GENERATIONQUALIFIER_DATA));
1209 
1210     /*
1211      * OIDs from other sources which show up in X.500 names we
1212      * expect to deal with often
1213      */
1214     /** OID for "IP=" IP address attributes, used with SKIP. */
1215         ipAddress_oid = intern(ObjectIdentifier.newInternal(ipAddress_data));
1216 
1217     /*
1218      * Domain component OID from RFC 1274, RFC 2247, RFC 3280
1219      */
1220 
1221     /*
1222      * OID for "DC=" domain component attributes, used with DNSNames in DN
1223      * format
1224      */
1225         DOMAIN_COMPONENT_OID =
1226             intern(ObjectIdentifier.newInternal(DOMAIN_COMPONENT_DATA));
1227 
1228     /** OID for "UID=" denoting a user id, defined in RFCs 1274 & 2798. */
1229         userid_oid = intern(ObjectIdentifier.newInternal(userid_data));
1230     }
1231 
1232     /**
1233      * Return constraint type:<ul>
1234      *   <li>NAME_DIFF_TYPE = -1: input name is different type from this name
1235      *       (i.e. does not constrain)
1236      *   <li>NAME_MATCH = 0: input name matches this name
1237      *   <li>NAME_NARROWS = 1: input name narrows this name
1238      *   <li>NAME_WIDENS = 2: input name widens this name
1239      *   <li>NAME_SAME_TYPE = 3: input name does not match or narrow this name,
1240      &       but is same type
1241      * </ul>.  These results are used in checking NameConstraints during
1242      * certification path verification.


< prev index next >