Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteKeyPair ¶
DeleteKeyPair removes the key pair from the system keyring
Types ¶
type KeyPair ¶
type KeyPair struct {
PrivateKey crypto.PrivateKey
PublicKey crypto.PublicKey
Algorithm Algorithm
}
KeyPair represents a DPoP key pair
func GenerateKeyPair ¶
GenerateKeyPair generates a new key pair for the specified algorithm
func LoadKeyPair ¶
LoadKeyPair loads the key pair from the system keyring
func (*KeyPair) CalculateThumbprint ¶
CalculateThumbprint calculates the JWK thumbprint for dpop_jkt
func (*KeyPair) GenerateProof ¶
func (keypair *KeyPair) GenerateProof( htu string, htm string, nonce string, accessToken string, additional map[string]any, ) (string, error)
GenerateProof generates a DPoP proof JWT
Click to show internal directories.
Click to hide internal directories.