org.hyperledger.fabric.client.identity.Signer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fabric-gateway Show documentation
Show all versions of fabric-gateway Show documentation
Hyperledger Fabric Gateway client API for Java
/*
* Copyright 2020 IBM All Rights Reserved.
*
* SPDX-License-Identifier: Apache-2.0
*/
package org.hyperledger.fabric.client.identity;
import java.security.GeneralSecurityException;
/**
* A signing implementation used to generate digital signatures. Standard implementations can be obtained using factory
* methods on the {@link Signers} class.
*/
@FunctionalInterface
public interface Signer {
/**
* Signs the supplied message digest. The digest is typically a hash of the message.
* @param digest A message digest.
* @return A digital signature.
* @throws GeneralSecurityException if a signing error occurs.
*/
byte[] sign(byte[] digest) throws GeneralSecurityException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy