jdk/src/share/classes/javax/security/auth/kerberos/KeyImpl.java
changeset 5457 d2782f1ecc9f
parent 715 f16baef3a20e
child 5506 202f599c92aa
equal deleted inserted replaced
5456:40ff273941a2 5457:d2782f1ecc9f
     1 /*
     1 /*
     2  * Copyright 2000-2008 Sun Microsystems, Inc.  All Rights Reserved.
     2  * Copyright 2000-2010 Sun Microsystems, Inc.  All Rights Reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Sun designates this
     7  * published by the Free Software Foundation.  Sun designates this
   203         HexDumpEncoder hd = new HexDumpEncoder();
   203         HexDumpEncoder hd = new HexDumpEncoder();
   204         return "EncryptionKey: keyType=" + keyType
   204         return "EncryptionKey: keyType=" + keyType
   205                           + " keyBytes (hex dump)="
   205                           + " keyBytes (hex dump)="
   206                           + (keyBytes == null || keyBytes.length == 0 ?
   206                           + (keyBytes == null || keyBytes.length == 0 ?
   207                              " Empty Key" :
   207                              " Empty Key" :
   208                              '\n' + hd.encode(keyBytes)
   208                              '\n' + hd.encodeBuffer(keyBytes)
   209                           + '\n');
   209                           + '\n');
   210 
   210 
   211 
   211 
   212     }
   212     }
   213 
   213