Class EbicsSecurityMediumVoid

Namespace
Subsembly.EBICS
Assembly
Subsembly.EBICS.Core.dll

Security medium implementation that stores the private keys in the EbicsContact.

public class EbicsSecurityMediumVoid : IEbicsSecurityMedium, IEbicsSecurityMediumPrivKeys
Inheritance
EbicsSecurityMediumVoid
Implements
Inherited Members

Constructors

EbicsSecurityMediumVoid(EbicsContact)

public EbicsSecurityMediumVoid(EbicsContact aContact)

Parameters

aContact EbicsContact

The EbicsContact that will be used to store the private keys.

Properties

CanChangePIN

Indicates whether the password can be changed.

public bool CanChangePIN { get; }

Property Value

bool

Changing the password is supported by this implementation and therefor this property is always true.

LastError

public EbicsSecurityMediumErrorCode LastError { get; }

Property Value

EbicsSecurityMediumErrorCode

SecurityMedium

Always is "0000".

public string SecurityMedium { get; }

Property Value

string

SecurityMediumID

public string SecurityMediumID { get; }

Property Value

string

SecurityMediumType

public EbicsSecurityMediumType SecurityMediumType { get; }

Property Value

EbicsSecurityMediumType

State

public EbicsSecurityMediumState State { get; }

Property Value

EbicsSecurityMediumState

SupportedSecurityCodes

Provides the set of EBICS security operations that are supported by this security media implementation.

public EbicsSecurityCode SupportedSecurityCodes { get; }

Property Value

EbicsSecurityCode

Remarks

The EbicsSecurityMediumVoid implementation always supports all security operations defined by the EbicsSecurityCode enumeration. However, only those security operations are possible, where there are actually private keys available in the selected contact.

Methods

Authenticate(string)

public bool Authenticate(string sPassword)

Parameters

sPassword string

Returns

bool

ChangePIN(string, string)

Change the password.

public bool ChangePIN(string sOldPassword, string sNewPassword)

Parameters

sOldPassword string
sNewPassword string

Returns

bool

Exceptions

ArgumentNullException

The parameter sOldPassword or sNewPassword was null.

InvalidOperationException

This security medium instance is not in the Selected state.

Create(string, string)

public bool Create(string sSecurityMediaID, string sPassword)

Parameters

sSecurityMediaID string
sPassword string

Returns

bool

GetPasswordInfo()

public EbicsPasswordInfo GetPasswordInfo()

Returns

EbicsPasswordInfo

GetSecurityOperations(EbicsContact)

public IEbicsSecurityOperations GetSecurityOperations(EbicsContact aContact)

Parameters

aContact EbicsContact

Returns

IEbicsSecurityOperations

Release()

public void Release()

Select(string)

public bool Select(string sSecurityMediaID)

Parameters

sSecurityMediaID string

Returns

bool