C# 클래스 Nyan.Modules.Web.Push.Google.Helper

파일 보기 프로젝트 열기: bucknellu/Nyan

공개 메소드들

메소드 설명
Base64ForUrlDecode ( string str ) : string

Decode Base64 encoded string with URL and Filename Safe Alphabet using UTF-8.

Base64ForUrlEncode ( string str ) : string

Base 64 Encoding with URL and Filename Safe Alphabet using UTF-8 character set.

Base64UrlDecode ( string arg ) : byte[]
Base64UrlEncode ( byte arg ) : string
ConvertInt ( int number ) : byte[]
CreateInfoChunk ( string type, byte recipientPublicKey, byte senderPublicKey ) : byte[]
EncryptMessage ( byte userKey, byte userSecret, byte data, ushort padding, bool randomisePadding = false ) : EncryptionResult
GenerateHKDF ( byte salt, byte ikm, byte info, int len ) : byte[]
SendNotification ( EndpointEntry sub, byte data, int ttl, ushort padding, bool randomisePadding = false ) : bool
SendNotification ( EndpointEntry target, object obj ) : bool
SendNotification ( string endpoint, byte userKey, byte userSecret, byte data = null, int ttl, ushort padding, bool randomisePadding = false ) : bool
SendNotification ( string endpoint, string data, string userKey, string userSecret, int ttl, ushort padding, bool randomisePadding = false ) : bool

메소드 상세

Base64ForUrlDecode() 공개 정적인 메소드

Decode Base64 encoded string with URL and Filename Safe Alphabet using UTF-8.
public static Base64ForUrlDecode ( string str ) : string
str string Base64 code
리턴 string

Base64ForUrlEncode() 공개 정적인 메소드

Base 64 Encoding with URL and Filename Safe Alphabet using UTF-8 character set.
public static Base64ForUrlEncode ( string str ) : string
str string The origianl string
리턴 string

Base64UrlDecode() 공개 정적인 메소드

public static Base64UrlDecode ( string arg ) : byte[]
arg string
리턴 byte[]

Base64UrlEncode() 공개 정적인 메소드

public static Base64UrlEncode ( byte arg ) : string
arg byte
리턴 string

ConvertInt() 공개 정적인 메소드

public static ConvertInt ( int number ) : byte[]
number int
리턴 byte[]

CreateInfoChunk() 공개 정적인 메소드

public static CreateInfoChunk ( string type, byte recipientPublicKey, byte senderPublicKey ) : byte[]
type string
recipientPublicKey byte
senderPublicKey byte
리턴 byte[]

EncryptMessage() 공개 정적인 메소드

public static EncryptMessage ( byte userKey, byte userSecret, byte data, ushort padding, bool randomisePadding = false ) : EncryptionResult
userKey byte
userSecret byte
data byte
padding ushort
randomisePadding bool
리턴 EncryptionResult

GenerateHKDF() 공개 정적인 메소드

public static GenerateHKDF ( byte salt, byte ikm, byte info, int len ) : byte[]
salt byte
ikm byte
info byte
len int
리턴 byte[]

SendNotification() 공개 정적인 메소드

public static SendNotification ( EndpointEntry sub, byte data, int ttl, ushort padding, bool randomisePadding = false ) : bool
sub Nyan.Modules.Web.Push.Model.EndpointEntry
data byte
ttl int
padding ushort
randomisePadding bool
리턴 bool

SendNotification() 공개 정적인 메소드

public static SendNotification ( EndpointEntry target, object obj ) : bool
target Nyan.Modules.Web.Push.Model.EndpointEntry
obj object
리턴 bool

SendNotification() 공개 정적인 메소드

public static SendNotification ( string endpoint, byte userKey, byte userSecret, byte data = null, int ttl, ushort padding, bool randomisePadding = false ) : bool
endpoint string
userKey byte
userSecret byte
data byte
ttl int
padding ushort
randomisePadding bool
리턴 bool

SendNotification() 공개 정적인 메소드

public static SendNotification ( string endpoint, string data, string userKey, string userSecret, int ttl, ushort padding, bool randomisePadding = false ) : bool
endpoint string
data string
userKey string
userSecret string
ttl int
padding ushort
randomisePadding bool
리턴 bool