public class Base64HashFunction extends BaseHashFunction
BaseHashFunction
that Base 64 encodes the digest hash value.
This class calls Base64.getEncoder().withoutPadding().encode( digest )
BaseHashFunction.Context
algorithm, charsetName, DEFAULT_ALGORITHM, DEFAULT_CHARSET, maxLength, postEncoding, preDigest
fieldDeclaration, numArgs, trace
Constructor and Description |
---|
Base64HashFunction(Fields fieldDeclaration)
Constructor Base64HashFunction creates a new Base64HashFunction instance.
|
Base64HashFunction(Fields fieldDeclaration,
SerFunction<java.lang.String,java.lang.String> preDigest,
SerFunction<java.lang.StringBuilder,java.lang.StringBuilder> postEncoding)
Constructor Base64HashFunction creates a new Base64HashFunction instance.
|
Base64HashFunction(Fields fieldDeclaration,
java.lang.String algorithm)
Constructor Base64HashFunction creates a new Base64HashFunction instance.
|
Base64HashFunction(Fields fieldDeclaration,
java.lang.String algorithm,
int maxLength)
Constructor Base64HashFunction creates a new Base64HashFunction instance.
|
Base64HashFunction(Fields fieldDeclaration,
java.lang.String algorithm,
int maxLength,
SerFunction<java.lang.String,java.lang.String> preDigest,
SerFunction<java.lang.StringBuilder,java.lang.StringBuilder> postEncoding)
Constructor Base64HashFunction creates a new Base64HashFunction instance.
|
Base64HashFunction(Fields fieldDeclaration,
java.lang.String algorithm,
int maxLength,
java.lang.String charsetName)
Constructor Base64HashFunction creates a new Base64HashFunction instance.
|
Base64HashFunction(Fields fieldDeclaration,
java.lang.String algorithm,
int maxLength,
java.lang.String charsetName,
SerFunction<java.lang.String,java.lang.String> preDigest,
SerFunction<java.lang.StringBuilder,java.lang.StringBuilder> postEncoding)
Constructor Base64HashFunction creates a new Base64HashFunction instance.
|
Base64HashFunction(Fields fieldDeclaration,
java.lang.String algorithm,
SerFunction<java.lang.String,java.lang.String> preDigest,
SerFunction<java.lang.StringBuilder,java.lang.StringBuilder> postEncoding)
Constructor Base64HashFunction creates a new Base64HashFunction instance.
|
Modifier and Type | Method and Description |
---|---|
protected void |
performEncoding(java.lang.StringBuilder buffer,
byte[] digest)
Method performEncoding ...
|
getAlgorithm, getCharset, getDigest, getValue, operate, prepare, verify
cleanup, equals, flush, getFieldDeclaration, getNumArgs, getTrace, hashCode, isSafe, printOperationInternal, toString, toStringInternal
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
cleanup, flush, getFieldDeclaration, getNumArgs, isSafe
@ConstructorProperties(value="fieldDeclaration") public Base64HashFunction(Fields fieldDeclaration)
fieldDeclaration
- of Fields@ConstructorProperties(value={"fieldDeclaration","preDigest","postEncoding"}) public Base64HashFunction(Fields fieldDeclaration, SerFunction<java.lang.String,java.lang.String> preDigest, SerFunction<java.lang.StringBuilder,java.lang.StringBuilder> postEncoding)
fieldDeclaration
- of FieldspreDigest
- of SerFunctionpostEncoding
- of SerFunction@ConstructorProperties(value={"fieldDeclaration","algorithm"}) public Base64HashFunction(Fields fieldDeclaration, java.lang.String algorithm)
fieldDeclaration
- of Fieldsalgorithm
- of String@ConstructorProperties(value={"fieldDeclaration","algorithm","preDigest","postEncoding"}) public Base64HashFunction(Fields fieldDeclaration, java.lang.String algorithm, SerFunction<java.lang.String,java.lang.String> preDigest, SerFunction<java.lang.StringBuilder,java.lang.StringBuilder> postEncoding)
fieldDeclaration
- of Fieldsalgorithm
- of StringpreDigest
- of SerFunctionpostEncoding
- of SerFunction@ConstructorProperties(value={"fieldDeclaration","algorithm","maxLength"}) public Base64HashFunction(Fields fieldDeclaration, java.lang.String algorithm, int maxLength)
fieldDeclaration
- of Fieldsalgorithm
- of StringmaxLength
- of int@ConstructorProperties(value={"fieldDeclaration","algorithm","maxLength","preDigest","postEncoding"}) public Base64HashFunction(Fields fieldDeclaration, java.lang.String algorithm, int maxLength, SerFunction<java.lang.String,java.lang.String> preDigest, SerFunction<java.lang.StringBuilder,java.lang.StringBuilder> postEncoding)
fieldDeclaration
- of Fieldsalgorithm
- of StringmaxLength
- of intpreDigest
- of SerFunctionpostEncoding
- of SerFunction@ConstructorProperties(value={"fieldDeclaration","algorithm","maxLength","charsetName"}) public Base64HashFunction(Fields fieldDeclaration, java.lang.String algorithm, int maxLength, java.lang.String charsetName)
fieldDeclaration
- of Fieldsalgorithm
- of StringmaxLength
- of intcharsetName
- of String@ConstructorProperties(value={"fieldDeclaration","algorithm","maxLength","charsetName","preDigest","postEncoding"}) public Base64HashFunction(Fields fieldDeclaration, java.lang.String algorithm, int maxLength, java.lang.String charsetName, SerFunction<java.lang.String,java.lang.String> preDigest, SerFunction<java.lang.StringBuilder,java.lang.StringBuilder> postEncoding)
fieldDeclaration
- of Fieldsalgorithm
- of StringmaxLength
- of intcharsetName
- of StringpreDigest
- of SerFunctionpostEncoding
- of SerFunctionprotected void performEncoding(java.lang.StringBuilder buffer, byte[] digest)
performEncoding
in class BaseHashFunction
buffer
- of StringBuilderdigest
- of byte[]Copyright © 2007-2017 Cascading Maintainers. All Rights Reserved.