Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
IRMA
Github mirrors
irmago
Commits
ab6d50e9
Commit
ab6d50e9
authored
Sep 28, 2017
by
Sietse Ringers
Browse files
Rename interface Session -> IrmaSession
parent
d04f8ab6
Changes
4
Hide whitespace changes
Inline
Side-by-side
keyshare.go
View file @
ab6d50e9
...
...
@@ -24,7 +24,7 @@ type keyshareSessionHandler interface {
}
type
keyshareSession
struct
{
session
Session
session
Irma
Session
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
Irma
Session
,
builders
gabi
.
ProofBuilderList
,
sessionHandler
keyshareSessionHandler
,
pin
KeysharePinRequestor
,
...
...
manager.go
View file @
ab6d50e9
...
...
@@ -225,8 +225,8 @@ func (cm *CredentialManager) groupCredentials(choice *DisclosureChoice) (map[Cre
return
grouped
,
nil
}
// Session is an IRMA session.
type
Session
interface
{
//
Irma
Session is an IRMA session.
type
Irma
Session
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
Irma
Session
,
issig
bool
)
(
gabi
.
ProofList
,
error
)
{
builders
,
err
:=
cm
.
ProofBuilders
(
choice
)
if
err
!=
nil
{
return
nil
,
err
...
...
requests.go
View file @
ab6d50e9
...
...
@@ -309,14 +309,14 @@ func NewIdentityProviderJwt(servername string, ir *IssuanceRequest) *IdentityPro
// A RequestorJwt contains an IRMA session object.
type
RequestorJwt
interface
{
IrmaSession
()
Session
IrmaSession
()
Irma
Session
}
// IrmaSession returns an IRMA session object.
func
(
jwt
*
ServiceProviderJwt
)
IrmaSession
()
Session
{
return
jwt
.
Request
.
Request
}
func
(
jwt
*
ServiceProviderJwt
)
IrmaSession
()
Irma
Session
{
return
jwt
.
Request
.
Request
}
// IrmaSession returns an IRMA session object.
func
(
jwt
*
SignatureRequestorJwt
)
IrmaSession
()
Session
{
return
jwt
.
Request
.
Request
}
func
(
jwt
*
SignatureRequestorJwt
)
IrmaSession
()
Irma
Session
{
return
jwt
.
Request
.
Request
}
// IrmaSession returns an IRMA session object.
func
(
jwt
*
IdentityProviderJwt
)
IrmaSession
()
Session
{
return
jwt
.
Request
.
Request
}
func
(
jwt
*
IdentityProviderJwt
)
IrmaSession
()
Irma
Session
{
return
jwt
.
Request
.
Request
}
session.go
View file @
ab6d50e9
...
...
@@ -36,7 +36,7 @@ type session struct {
Handler
Handler
jwt
RequestorJwt
irmaSession
Session
irmaSession
Irma
Session
transport
*
HTTPTransport
choice
*
DisclosureChoice
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment