jdk/src/share/classes/com/sun/security/sasl/util/AbstractSaslImpl.java
changeset 14340 e150cbaf584e
parent 10336 0bb1999251f8
child 14342 8435a30053c1
equal deleted inserted replaced
14339:3b561cef789b 14340:e150cbaf584e
   147         return completed;
   147         return completed;
   148     }
   148     }
   149 
   149 
   150     /**
   150     /**
   151      * Retrieves the negotiated property.
   151      * Retrieves the negotiated property.
   152      * @exception SaslException if this authentication exchange has not completed
   152      * @exception IllegalStateException if this authentication exchange has
       
   153      * not completed
   153      */
   154      */
   154     public Object getNegotiatedProperty(String propName) {
   155     public Object getNegotiatedProperty(String propName) {
   155         if (!completed) {
   156         if (!completed) {
   156             throw new IllegalStateException("SASL authentication not completed");
   157             throw new IllegalStateException("SASL authentication not completed");
   157         }
   158         }
   253     /**
   254     /**
   254      * Outputs a byte array and converts
   255      * Outputs a byte array and converts
   255      */
   256      */
   256     protected static final void traceOutput(String srcClass, String srcMethod,
   257     protected static final void traceOutput(String srcClass, String srcMethod,
   257         String traceTag, byte[] output) {
   258         String traceTag, byte[] output) {
   258         traceOutput(srcClass, srcMethod, traceTag, output, 0, output.length);
   259         if (output != null) {
       
   260             traceOutput(srcClass, srcMethod, traceTag, output, 0, output.length);
       
   261         }
   259     }
   262     }
   260 
   263 
   261     protected static final void traceOutput(String srcClass, String srcMethod,
   264     protected static final void traceOutput(String srcClass, String srcMethod,
   262         String traceTag, byte[] output, int offset, int len) {
   265         String traceTag, byte[] output, int offset, int len) {
   263         try {
   266         try {