Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PoPTokenBuilder ¶
type PoPTokenBuilder struct {
// contains filtered or unexported fields
}
PoPTokenBuilder - generates and signs a T-Mobile PoP token for API requests
func NewFromBytes ¶
func NewFromBytes(key []byte, passphrase string) (*PoPTokenBuilder, error)
NewFromBytes - returns a PoPTokenBuilder using a PEM formatted RSA private key byte array
func NewFromFile ¶
func NewFromFile(path string, passphrase string) (*PoPTokenBuilder, error)
NewFromFile - returns a PoPTokenBuilder using a PEM formatted RSA private key loaded from a file
func NewFromString ¶
func NewFromString(key string, passphrase string) (*PoPTokenBuilder, error)
NewFromString - returns a PoPTokenBuilder using a PEM formatted RSA private key string
Click to show internal directories.
Click to hide internal directories.