org.hyperledger.fabric.client.identity.Identity Maven / Gradle / Ivy
/*
* Copyright 2020 IBM All Rights Reserved.
*
* SPDX-License-Identifier: Apache-2.0
*/
package org.hyperledger.fabric.client.identity;
/**
* Represents a client identity used to interact with a Fabric network. The identity consists of an identifier for the
* organization to which the identity belongs, and implementation-specific credentials describing the identity.
*/
public interface Identity {
/**
* Member services provider to which this identity is associated.
* @return A member services provider identifier.
*/
String getMspId();
/**
* Implementation-specific credentials.
* @return Credential data.
*/
byte[] getCredentials();
}