C# 클래스 Twilio.Auth.AccessToken

파일 보기 프로젝트 열기: twilio/twilio-csharp 1 사용 예제들

공개 메소드들

메소드 설명
AccessToken ( string accountSid, string signingKeySid, string secret ) : System
AccessToken ( string accountSid, string signingKeySid, string secret, int ttl ) : System
AddGrant ( IGrant grant ) : AccessToken

Add a Grant to this AccessToken.

ConvertToUnixTimestamp ( System.DateTime date ) : int
ToJWT ( JwtHashAlgorithm algorithm = JwtHashAlgorithm.HS256 ) : string

Generate a JWT with the provided information and sign it with the given secret.

ToString ( ) : string

메소드 상세

AccessToken() 공개 메소드

public AccessToken ( string accountSid, string signingKeySid, string secret ) : System
accountSid string
signingKeySid string
secret string
리턴 System

AccessToken() 공개 메소드

public AccessToken ( string accountSid, string signingKeySid, string secret, int ttl ) : System
accountSid string
signingKeySid string
secret string
ttl int
리턴 System

AddGrant() 공개 메소드

Add a Grant to this AccessToken.
public AddGrant ( IGrant grant ) : AccessToken
grant IGrant The grant to add
리턴 AccessToken

ConvertToUnixTimestamp() 공개 정적인 메소드

public static ConvertToUnixTimestamp ( System.DateTime date ) : int
date System.DateTime
리턴 int

ToJWT() 공개 메소드

Generate a JWT with the provided information and sign it with the given secret.
public ToJWT ( JwtHashAlgorithm algorithm = JwtHashAlgorithm.HS256 ) : string
algorithm JwtHashAlgorithm The encryption type - default:HS256
리턴 string

ToString() 공개 메소드

public ToString ( ) : string
리턴 string