Documentation ¶
Index ¶
- type ChannelPolicyManager
- type ChannelPolicyManagerGetter
- type ChannelPolicyManagerGetterWithManager
- type DeserializersManager
- func (m *DeserializersManager) Deserialize(raw []byte) (*mspproto.SerializedIdentity, error)
- func (m *DeserializersManager) GetChannelDeserializers() map[string]msp.IdentityDeserializer
- func (m *DeserializersManager) GetLocalDeserializer() msp.IdentityDeserializer
- func (m *DeserializersManager) GetLocalMSPIdentifier() string
- type Identity
- func (id *Identity) Anonymous() bool
- func (id *Identity) ExpiresAt() time.Time
- func (id *Identity) GetIdentifier() *msp.IdentityIdentifier
- func (id *Identity) GetMSPIdentifier() string
- func (id *Identity) GetOrganizationalUnits() []*msp.OUIdentifier
- func (id *Identity) SatisfiesPrincipal(*mspproto.MSPPrincipal) error
- func (id *Identity) Serialize() ([]byte, error)
- func (id *Identity) Validate() error
- func (id *Identity) Verify(msg []byte, sig []byte) error
- type IdentityDeserializer
- type IdentityDeserializerWithExpiration
- type Policy
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChannelPolicyManager ¶
type ChannelPolicyManagerGetter ¶
type ChannelPolicyManagerGetter struct{}
type DeserializersManager ¶
type DeserializersManager struct { LocalDeserializer msp.IdentityDeserializer ChannelDeserializers map[string]msp.IdentityDeserializer }
func (*DeserializersManager) Deserialize ¶
func (m *DeserializersManager) Deserialize(raw []byte) (*mspproto.SerializedIdentity, error)
func (*DeserializersManager) GetChannelDeserializers ¶
func (m *DeserializersManager) GetChannelDeserializers() map[string]msp.IdentityDeserializer
func (*DeserializersManager) GetLocalDeserializer ¶
func (m *DeserializersManager) GetLocalDeserializer() msp.IdentityDeserializer
func (*DeserializersManager) GetLocalMSPIdentifier ¶
func (m *DeserializersManager) GetLocalMSPIdentifier() string
type Identity ¶
type Identity struct { Msg []byte // contains filtered or unexported fields }
func (*Identity) GetIdentifier ¶
func (id *Identity) GetIdentifier() *msp.IdentityIdentifier
func (*Identity) GetMSPIdentifier ¶
func (*Identity) GetOrganizationalUnits ¶
func (id *Identity) GetOrganizationalUnits() []*msp.OUIdentifier
func (*Identity) SatisfiesPrincipal ¶
func (id *Identity) SatisfiesPrincipal(*mspproto.MSPPrincipal) error
type IdentityDeserializer ¶
func (*IdentityDeserializer) DeserializeIdentity ¶
func (d *IdentityDeserializer) DeserializeIdentity(serializedIdentity []byte) (msp.Identity, error)
func (*IdentityDeserializer) IsWellFormed ¶
func (d *IdentityDeserializer) IsWellFormed(identity *mspproto.SerializedIdentity) error
type IdentityDeserializerWithExpiration ¶
type IdentityDeserializerWithExpiration struct { *IdentityDeserializer Expiration time.Time }
func (*IdentityDeserializerWithExpiration) DeserializeIdentity ¶
func (d *IdentityDeserializerWithExpiration) DeserializeIdentity(serializedIdentity []byte) (msp.Identity, error)
type Policy ¶
type Policy struct {
Deserializer msp.IdentityDeserializer
}
Click to show internal directories.
Click to hide internal directories.