Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AccessTokenResponse ¶
type Encryption ¶
type Encryption struct {
// contains filtered or unexported fields
}
func NewEncryption ¶
func NewEncryption() (Encryption, error)
NewEncryption creates a new Encryption struct.
func (*Encryption) DecryptAccessToken ¶
func (enc *Encryption) DecryptAccessToken(accessToken string, publicKey string, nonce string) (string, error)
decryptAccessToken decrypts the access token using the private key and nonce.
func (*Encryption) EncodedPublicKey ¶
func (enc *Encryption) EncodedPublicKey() string
encodedPublicKey returns the public key as a hex string.
Click to show internal directories.
Click to hide internal directories.