jdk/src/share/classes/sun/security/jgss/krb5/Krb5NameElement.java
changeset 21278 ef8a3a2a72f2
parent 14342 8435a30053c1
child 23010 6dadb192ad81
equal deleted inserted replaced
21277:bd380b80f9ea 21278:ef8a3a2a72f2
   251     }
   251     }
   252 
   252 
   253 
   253 
   254     /**
   254     /**
   255      * Returns the principal name in the form user@REALM or
   255      * Returns the principal name in the form user@REALM or
   256      * host/service@REALM but with the following contraints that are
   256      * host/service@REALM but with the following constraints that are
   257      * imposed by RFC 1964:
   257      * imposed by RFC 1964:
   258      * <pre>
   258      * <pre>
   259      *  (1) all occurrences of the characters `@`,  `/`, and `\` within
   259      *  (1) all occurrences of the characters `@`,  `/`, and `\` within
   260      *   principal components or realm names shall be quoted with an
   260      *   principal components or realm names shall be quoted with an
   261      *   immediately-preceding `\`.
   261      *   immediately-preceding `\`.
   263      *   (2) all occurrences of the null, backspace, tab, or newline
   263      *   (2) all occurrences of the null, backspace, tab, or newline
   264      *   characters within principal components or realm names will be
   264      *   characters within principal components or realm names will be
   265      *   represented, respectively, with `\0`, `\b`, `\t`, or `\n`.
   265      *   represented, respectively, with `\0`, `\b`, `\t`, or `\n`.
   266      *
   266      *
   267      *   (3) the `\` quoting character shall not be emitted within an
   267      *   (3) the `\` quoting character shall not be emitted within an
   268      *   exported name except to accomodate cases (1) and (2).
   268      *   exported name except to accommodate cases (1) and (2).
   269      * </pre>
   269      * </pre>
   270      */
   270      */
   271     public byte[] export() throws GSSException {
   271     public byte[] export() throws GSSException {
   272         // XXX Apply the above constraints.
   272         // XXX Apply the above constraints.
   273         byte[] retVal = null;
   273         byte[] retVal = null;