Show / Hide Table of Contents

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()
Namespace: Innovator.Client
Assembly: Innovator.Client.dll
Syntax
public sealed class SecureToken : IDisposable
Remarks

The portable version of this class merely obfuscates the password in memory, it does not encrypt it or pin it like the version present in the full .Net framework compilation of the library

Constructors

| Improve this Doc View Source

SecureToken(ArraySegment<Byte>)

Initializes a new instance of the SecureToken class

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)

Initializes a new instance of the SecureToken class

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[])

Initializes a new instance of the SecureToken class

Declaration
public SecureToken(ref char[] unencrypted)
Parameters
Type Name Description
System.Char[] unencrypted
| Improve this Doc View Source

SecureToken(Stream)

Initializes a new instance of the SecureToken class

Declaration
public SecureToken(Stream data)
Parameters
Type Name Description
System.IO.Stream data
| Improve this Doc View Source

SecureToken(ref String)

Initializes a new instance of the SecureToken class

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
public void Dispose()
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
Type Name Description
SecureToken.FuncRef<System.Byte[], T> callback
Returns
Type Description
T
Type Parameters
Name Description
T
| 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
Type Name Description
SecureToken.FuncRef<System.String, T> callback
Returns
Type Description
T
Type Parameters
Name Description
T

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
Type Description
SecureToken
| 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
Type Description
SecureToken
| 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
Type Description
SecureToken

Extension Methods

Extensions.IsNullOrEmpty(SecureToken)
  • Improve this Doc
  • View Source
Back to top Copyright © 2015-2017 Microsoft
Generated by DocFX