@Test public void testDumpThrowsNullPointerException1() throws Throwable { assertThrows(NullPointerException.class, () -> { byte[] keyBytes = new byte[2]; new SecureDESKey(length, keyType, keyBytes, kcv).dump(null, ""); }); }
@Override public void dump (PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<secure-des-key"); p.print(" length=\"" + getKeyLength() + "\""); p.print(" type=\"" + keyType + "\""); p.print(" variant=\"" + getVariant() + "\""); p.print(" scheme=\"" + this.getScheme() + "\""); if (keyName != null) p.print(" name=\"" + keyName + "\""); p.println(">"); p.println(inner + "<data>" + ISOUtil.hexString(getKeyBytes()) + "</data>"); p.println(inner + "<check-value>" + ISOUtil.hexString(getKeyCheckValue()) + "</check-value>"); p.println(indent + "</secure-des-key>"); }
SecureDESKey extends SecureVariantKey { @Override public void dump (PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<secure-des-key"); p.print(" length=\"" + getKeyLength() + "\""); p.print(" type=\"" + keyType + "\""); p.print(" variant=\"" + getVariant() + "\""); p.print(" scheme=\"" + this.getScheme() + "\""); if (keyName != null) p.print(" name=\"" + keyName + "\""); p.println(">"); p.println(inner + "<data>" + ISOUtil.hexString(getKeyBytes()) + "</data>"); p.println(inner + "<check-value>" + ISOUtil.hexString(getKeyCheckValue()) + "</check-value>"); p.println(indent + "</secure-des-key>"); } }
SecureDESKey extends SecureVariantKey { @Override public void dump (PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<secure-des-key"); p.print(" length=\"" + getKeyLength() + "\""); p.print(" type=\"" + keyType + "\""); p.print(" variant=\"" + getVariant() + "\""); p.print(" scheme=\"" + this.getScheme() + "\""); if (keyName != null) p.print(" name=\"" + keyName + "\""); p.println(">"); p.println(inner + "<data>" + ISOUtil.hexString(getKeyBytes()) + "</data>"); p.println(inner + "<check-value>" + ISOUtil.hexString(getKeyCheckValue()) + "</check-value>"); p.println(indent + "</secure-des-key>"); } SecureDESKey();  SecureDESKey(short keyLength, String keyType, byte variant, KeyScheme scheme, byte[] keyBytes,
            byte[] keyCheckValue);  SecureDESKey(short keyLength, String keyType, byte[] keyBytes,
            byte[] keyCheckValue);  SecureDESKey(short keyLength, String keyType, String keyHexString,
            String keyCheckValueHexString);  SecureDESKey(short keyLength, String keyType, byte variant, KeyScheme scheme, String keyHexString,
            String keyCheckValueHexString); }
SecureDESKey extends SecureVariantKey { @Override public void dump (PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<secure-des-key"); p.print(" length=\"" + getKeyLength() + "\""); p.print(" type=\"" + keyType + "\""); p.print(" variant=\"" + getVariant() + "\""); p.print(" scheme=\"" + this.getScheme() + "\""); if (keyName != null) p.print(" name=\"" + keyName + "\""); p.println(">"); p.println(inner + "<data>" + ISOUtil.hexString(getKeyBytes()) + "</data>"); p.println(inner + "<check-value>" + ISOUtil.hexString(getKeyCheckValue()) + "</check-value>"); p.println(indent + "</secure-des-key>"); } SecureDESKey();  SecureDESKey(short keyLength, String keyType, byte variant, KeyScheme scheme, byte[] keyBytes,
            byte[] keyCheckValue);  SecureDESKey(short keyLength, String keyType, byte[] keyBytes,
            byte[] keyCheckValue);  SecureDESKey(short keyLength, String keyType, String keyHexString,
            String keyCheckValueHexString);  SecureDESKey(short keyLength, String keyType, byte variant, KeyScheme scheme, String keyHexString,
            String keyCheckValueHexString); @Override byte getVariant(); @Override KeyScheme getScheme(); @Override void dump(PrintStream p, String indent); }
SecureDESKey extends SecureVariantKey { @Override public void dump (PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<secure-des-key"); p.print(" length=\"" + getKeyLength() + "\""); p.print(" type=\"" + keyType + "\""); p.print(" variant=\"" + getVariant() + "\""); p.print(" scheme=\"" + this.getScheme() + "\""); if (keyName != null) p.print(" name=\"" + keyName + "\""); p.println(">"); p.println(inner + "<data>" + ISOUtil.hexString(getKeyBytes()) + "</data>"); p.println(inner + "<check-value>" + ISOUtil.hexString(getKeyCheckValue()) + "</check-value>"); p.println(indent + "</secure-des-key>"); } SecureDESKey();  SecureDESKey(short keyLength, String keyType, byte variant, KeyScheme scheme, byte[] keyBytes,
            byte[] keyCheckValue);  SecureDESKey(short keyLength, String keyType, byte[] keyBytes,
            byte[] keyCheckValue);  SecureDESKey(short keyLength, String keyType, String keyHexString,
            String keyCheckValueHexString);  SecureDESKey(short keyLength, String keyType, byte variant, KeyScheme scheme, String keyHexString,
            String keyCheckValueHexString); @Override byte getVariant(); @Override KeyScheme getScheme(); @Override void dump(PrintStream p, String indent);  }