public class Base64Format extends Object implements HashFormat
HashFormat
that outputs only the hash's digest bytes in Base64 format. It does not print out
anything else (salt, iterations, etc). This implementation is mostly provided as a convenience for
command-line hashing.Constructor and Description |
---|
Base64Format() |
Modifier and Type | Method and Description |
---|---|
String |
format(Hash hash)
Returns
hash != null ? hash.toBase64() : null . |
public String format(Hash hash)
hash != null ? hash.toBase64() : null
.format
in interface HashFormat
hash
- the hash instance to format into a String.hash != null ? hash.toBase64() : null
.Copyright © 2004–2019 The Apache Software Foundation. All rights reserved.