Class SecureToken
A class for storing sensitive information (e.g. passwords)
Inheritance
System.Object
SecureToken
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: Innovator.Client.dll
Syntax
public sealed class SecureToken : IDisposable
Constructors
|
Improve this Doc
View Source
SecureToken(ArraySegment<Byte>)
Declaration
public SecureToken(ArraySegment<byte> unencrypted)
Parameters
Type |
Name |
Description |
System.ArraySegment<System.Byte> |
unencrypted |
|
|
Improve this Doc
View Source
SecureToken(ref Byte[], Int32, Int32)
Declaration
public SecureToken(ref byte[] unencrypted, int start, int length)
Parameters
Type |
Name |
Description |
System.Byte[] |
unencrypted |
|
System.Int32 |
start |
|
System.Int32 |
length |
|
|
Improve this Doc
View Source
SecureToken(ref Char[])
Declaration
public SecureToken(ref char[] unencrypted)
Parameters
Type |
Name |
Description |
System.Char[] |
unencrypted |
|
|
Improve this Doc
View Source
SecureToken(Stream)
Declaration
public SecureToken(Stream data)
Parameters
Type |
Name |
Description |
System.IO.Stream |
data |
|
|
Improve this Doc
View Source
SecureToken(ref String)
Declaration
public SecureToken(ref string unencrypted)
Parameters
Type |
Name |
Description |
System.String |
unencrypted |
|
Properties
|
Improve this Doc
View Source
Length
Gets the length of the token (in characters)
Declaration
public int Length { get; }
Property Value
Type |
Description |
System.Int32 |
|
Methods
|
Improve this Doc
View Source
Dispose()
Releases unmanaged resources.
Declaration
Implements
System.IDisposable.Dispose()
|
Improve this Doc
View Source
UseBytes<T>(SecureToken.FuncRef<Byte[], T>)
Use the password as a string in a secure fashion
Declaration
public T UseBytes<T>(SecureToken.FuncRef<byte[], T> callback)
Parameters
Returns
Type Parameters
|
Improve this Doc
View Source
UseString<T>(SecureToken.FuncRef<String, T>)
Use the password as a string in a secure fashion
Declaration
public T UseString<T>(SecureToken.FuncRef<string, T> callback)
Parameters
Returns
Type Parameters
Operators
|
Improve this Doc
View Source
Implicit(ArraySegment<Byte> to SecureToken)
Performs an implicit conversion from System.ArraySegment<T> to SecureToken.
Declaration
public static implicit operator SecureToken(ArraySegment<byte> val)
Parameters
Type |
Name |
Description |
System.ArraySegment<System.Byte> |
val |
|
Returns
|
Improve this Doc
View Source
Implicit(Byte[] to SecureToken)
Performs an implicit conversion from System.Byte[] to SecureToken.
Declaration
public static implicit operator SecureToken(byte[] val)
Parameters
Type |
Name |
Description |
System.Byte[] |
val |
|
Returns
|
Improve this Doc
View Source
Implicit(String to SecureToken)
Performs an implicit conversion from System.String to SecureToken.
Declaration
public static implicit operator SecureToken(string val)
Parameters
Type |
Name |
Description |
System.String |
val |
|
Returns
Extension Methods