Commit ab6d50e9 authored by Sietse Ringers's avatar Sietse Ringers
Browse files

Rename interface Session -> IrmaSession

parent d04f8ab6
......@@ -24,7 +24,7 @@ type keyshareSessionHandler interface {
}
type keyshareSession struct {
session Session
session IrmaSession
builders gabi.ProofBuilderList
transports map[SchemeManagerIdentifier]*HTTPTransport
sessionHandler keyshareSessionHandler
......@@ -127,7 +127,7 @@ func (ks *keyshareServer) HashedPin(pin string) string {
// user cancels; or one of the keyshare servers blocks us.
// Error, blocked or success of the keyshare session is reported back to the keyshareSessionHandler.
func startKeyshareSession(
session Session,
session IrmaSession,
builders gabi.ProofBuilderList,
sessionHandler keyshareSessionHandler,
pin KeysharePinRequestor,
......
......@@ -225,8 +225,8 @@ func (cm *CredentialManager) groupCredentials(choice *DisclosureChoice) (map[Cre
return grouped, nil
}
// Session is an IRMA session.
type Session interface {
// IrmaSession is an IRMA session.
type IrmaSession interface {
GetNonce() *big.Int
SetNonce(*big.Int)
GetContext() *big.Int
......@@ -257,7 +257,7 @@ func (cm *CredentialManager) ProofBuilders(choice *DisclosureChoice) (gabi.Proof
}
// Proofs computes disclosure proofs containing the attributes specified by choice.
func (cm *CredentialManager) Proofs(choice *DisclosureChoice, request Session, issig bool) (gabi.ProofList, error) {
func (cm *CredentialManager) Proofs(choice *DisclosureChoice, request IrmaSession, issig bool) (gabi.ProofList, error) {
builders, err := cm.ProofBuilders(choice)
if err != nil {
return nil, err
......
......@@ -309,14 +309,14 @@ func NewIdentityProviderJwt(servername string, ir *IssuanceRequest) *IdentityPro
// A RequestorJwt contains an IRMA session object.
type RequestorJwt interface {
IrmaSession() Session
IrmaSession() IrmaSession
}
// IrmaSession returns an IRMA session object.
func (jwt *ServiceProviderJwt) IrmaSession() Session { return jwt.Request.Request }
func (jwt *ServiceProviderJwt) IrmaSession() IrmaSession { return jwt.Request.Request }
// IrmaSession returns an IRMA session object.
func (jwt *SignatureRequestorJwt) IrmaSession() Session { return jwt.Request.Request }
func (jwt *SignatureRequestorJwt) IrmaSession() IrmaSession { return jwt.Request.Request }
// IrmaSession returns an IRMA session object.
func (jwt *IdentityProviderJwt) IrmaSession() Session { return jwt.Request.Request }
func (jwt *IdentityProviderJwt) IrmaSession() IrmaSession { return jwt.Request.Request }
......@@ -36,7 +36,7 @@ type session struct {
Handler Handler
jwt RequestorJwt
irmaSession Session
irmaSession IrmaSession
transport *HTTPTransport
choice *DisclosureChoice
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment