func (u *User) SetRoles(roles []string) {
	u.roles = roles
}
SetRoles Set the roles.
@param roles {[]string} The roles.
package identity
import (
	"github.com/golang/protobuf/proto"
	"github.com/hyperledger/fabric-sdk-go/api/apicryptosuite"
	pb_msp "github.com/hyperledger/fabric-sdk-go/third_party/github.com/hyperledger/fabric/protos/msp"
	"github.com/pkg/errors"
)
type User struct {
	name                  string
	mspID                 string
	roles                 []string
	privateKey            apicryptosuite.Key
	enrollmentCertificate []byte
}
type JSON struct {
	MspID                 string
	Roles                 []string
	PrivateKeySKI         []byte
	EnrollmentCertificate []byte
}
func NewUser(name string, mspID string) *User {
	return &User{name: name, mspID: mspID}
}
func (u *User) Name() string {
	return u.name
}
func (u *User) Roles() []string {
	return u.roles
}