equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Portions Copyright 2000-2009 Sun Microsystems, Inc. All Rights Reserved. |
2 * Portions 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 |
497 public String toString() { |
497 public String toString() { |
498 return new String("EncryptionKey: keyType=" + keyType |
498 return new String("EncryptionKey: keyType=" + keyType |
499 + " kvno=" + kvno |
499 + " kvno=" + kvno |
500 + " keyValue (hex dump)=" |
500 + " keyValue (hex dump)=" |
501 + (keyValue == null || keyValue.length == 0 ? |
501 + (keyValue == null || keyValue.length == 0 ? |
502 " Empty Key" : '\n' + Krb5.hexDumper.encode(keyValue) |
502 " Empty Key" : '\n' |
503 + '\n')); |
503 + Krb5.hexDumper.encodeBuffer(keyValue) |
|
504 + '\n')); |
504 } |
505 } |
505 |
506 |
506 /** |
507 /** |
507 * Find a key with given etype |
508 * Find a key with given etype |
508 */ |
509 */ |