Documentation ¶
Index ¶
- Constants
- type AccessToken
- type AccessTokenBuilder
- type JwtAccessToken
- func (receiver *JwtAccessToken) GetAudience() string
- func (receiver *JwtAccessToken) GetDeviceUUID() string
- func (receiver *JwtAccessToken) GetDeviceUserAgent() string
- func (receiver *JwtAccessToken) GetExpirationTime() int
- func (receiver *JwtAccessToken) GetIssuedAt() int
- func (receiver *JwtAccessToken) GetIssuer() string
- func (receiver *JwtAccessToken) GetSubject() string
- func (receiver *JwtAccessToken) SetAudience(value string)
- func (receiver *JwtAccessToken) SetDeviceUUID(value string)
- func (receiver *JwtAccessToken) SetDeviceUserAgent(value string)
- func (receiver *JwtAccessToken) SetExpirationTime(value int)
- func (receiver *JwtAccessToken) SetIssuedAt(value int)
- func (receiver *JwtAccessToken) SetIssuer(value string)
- func (receiver *JwtAccessToken) SetSubject(value string)
- func (receiver *JwtAccessToken) ToString() (string, error)
- type JwtAccessTokenBuilder
- func (receiver *JwtAccessTokenBuilder) Build() (AccessToken, error)
- func (receiver *JwtAccessTokenBuilder) BuildToJwt() (*JwtAccessToken, error)
- func (receiver *JwtAccessTokenBuilder) New() AccessTokenBuilder
- func (receiver *JwtAccessTokenBuilder) NewFromJwtString(token string) (AccessTokenBuilder, error)
- func (receiver *JwtAccessTokenBuilder) SetAudience(value string) AccessTokenBuilder
- func (receiver *JwtAccessTokenBuilder) SetDeviceUUID(value string) AccessTokenBuilder
- func (receiver *JwtAccessTokenBuilder) SetDeviceUserAgent(value string) AccessTokenBuilder
- func (receiver *JwtAccessTokenBuilder) SetExpirationTime(value int) AccessTokenBuilder
- func (receiver *JwtAccessTokenBuilder) SetIssuedAt(value int) AccessTokenBuilder
- func (receiver *JwtAccessTokenBuilder) SetIssuer(value string) AccessTokenBuilder
- func (receiver *JwtAccessTokenBuilder) SetSubject(value string) AccessTokenBuilder
- type MutableAccessToken
- type QueryAccessToken
Constants ¶
View Source
const ( CommonJWTClaimIssuer = "iss" CommonJWTClaimAudience = "aud" CommonJWTClaimSubject = "sub" CommonJWTClaimIssuedAt = "iat" CommonJWTClaimExpirationTime = "exp" CommonJWTClaimDeviceUUID = "deviceUUID" CommonJWTClaimDeviceUserAgent = "deviceUserAgent" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessToken ¶
type AccessToken interface { QueryAccessToken MutableAccessToken }
type AccessTokenBuilder ¶
type AccessTokenBuilder interface { New() AccessTokenBuilder NewFromJwtString(string) (AccessTokenBuilder, error) Build() (AccessToken, error) BuildToJwt() (*JwtAccessToken, error) SetIssuer(string) AccessTokenBuilder SetAudience(string) AccessTokenBuilder SetSubject(string) AccessTokenBuilder SetDeviceUUID(string) AccessTokenBuilder SetDeviceUserAgent(string) AccessTokenBuilder SetIssuedAt(int) AccessTokenBuilder SetExpirationTime(int) AccessTokenBuilder }
type JwtAccessToken ¶
type JwtAccessToken struct {
// contains filtered or unexported fields
}
func (*JwtAccessToken) GetAudience ¶
func (receiver *JwtAccessToken) GetAudience() string
func (*JwtAccessToken) GetDeviceUUID ¶
func (receiver *JwtAccessToken) GetDeviceUUID() string
func (*JwtAccessToken) GetDeviceUserAgent ¶
func (receiver *JwtAccessToken) GetDeviceUserAgent() string
func (*JwtAccessToken) GetExpirationTime ¶
func (receiver *JwtAccessToken) GetExpirationTime() int
func (*JwtAccessToken) GetIssuedAt ¶
func (receiver *JwtAccessToken) GetIssuedAt() int
func (*JwtAccessToken) GetIssuer ¶
func (receiver *JwtAccessToken) GetIssuer() string
func (*JwtAccessToken) GetSubject ¶
func (receiver *JwtAccessToken) GetSubject() string
func (*JwtAccessToken) SetAudience ¶
func (receiver *JwtAccessToken) SetAudience(value string)
func (*JwtAccessToken) SetDeviceUUID ¶
func (receiver *JwtAccessToken) SetDeviceUUID(value string)
func (*JwtAccessToken) SetDeviceUserAgent ¶
func (receiver *JwtAccessToken) SetDeviceUserAgent(value string)
func (*JwtAccessToken) SetExpirationTime ¶
func (receiver *JwtAccessToken) SetExpirationTime(value int)
func (*JwtAccessToken) SetIssuedAt ¶
func (receiver *JwtAccessToken) SetIssuedAt(value int)
func (*JwtAccessToken) SetIssuer ¶
func (receiver *JwtAccessToken) SetIssuer(value string)
func (*JwtAccessToken) SetSubject ¶
func (receiver *JwtAccessToken) SetSubject(value string)
func (*JwtAccessToken) ToString ¶
func (receiver *JwtAccessToken) ToString() (string, error)
type JwtAccessTokenBuilder ¶
type JwtAccessTokenBuilder struct {
// contains filtered or unexported fields
}
func NewJwtAccessTokenBuilder ¶
func NewJwtAccessTokenBuilder(config configs.TokenConfig) *JwtAccessTokenBuilder
func (*JwtAccessTokenBuilder) Build ¶
func (receiver *JwtAccessTokenBuilder) Build() (AccessToken, error)
func (*JwtAccessTokenBuilder) BuildToJwt ¶
func (receiver *JwtAccessTokenBuilder) BuildToJwt() (*JwtAccessToken, error)
func (*JwtAccessTokenBuilder) New ¶
func (receiver *JwtAccessTokenBuilder) New() AccessTokenBuilder
func (*JwtAccessTokenBuilder) NewFromJwtString ¶
func (receiver *JwtAccessTokenBuilder) NewFromJwtString(token string) (AccessTokenBuilder, error)
func (*JwtAccessTokenBuilder) SetAudience ¶
func (receiver *JwtAccessTokenBuilder) SetAudience(value string) AccessTokenBuilder
func (*JwtAccessTokenBuilder) SetDeviceUUID ¶
func (receiver *JwtAccessTokenBuilder) SetDeviceUUID(value string) AccessTokenBuilder
func (*JwtAccessTokenBuilder) SetDeviceUserAgent ¶
func (receiver *JwtAccessTokenBuilder) SetDeviceUserAgent(value string) AccessTokenBuilder
func (*JwtAccessTokenBuilder) SetExpirationTime ¶
func (receiver *JwtAccessTokenBuilder) SetExpirationTime(value int) AccessTokenBuilder
func (*JwtAccessTokenBuilder) SetIssuedAt ¶
func (receiver *JwtAccessTokenBuilder) SetIssuedAt(value int) AccessTokenBuilder
func (*JwtAccessTokenBuilder) SetIssuer ¶
func (receiver *JwtAccessTokenBuilder) SetIssuer(value string) AccessTokenBuilder
func (*JwtAccessTokenBuilder) SetSubject ¶
func (receiver *JwtAccessTokenBuilder) SetSubject(value string) AccessTokenBuilder
type MutableAccessToken ¶
Click to show internal directories.
Click to hide internal directories.