C# Class dlech.SshAgentLib.ISshKeyExt

ファイルを表示 Open project: dlech/SshAgentLib

Public Methods

Method Description
FormatSignature ( this key, byte signature ) : byte[]
Get ( this aKeyList, SshVersion aVersion, byte aPublicKeyBlob ) : ISshKey
GetAuthorizedKeyString ( this aKey ) : string
GetMD5Fingerprint ( this aKey ) : byte[]
GetPublicKeyBlob ( this aKey ) : byte[]

Gets OpenSsh formatted bytes from public key

Currently only supports RSA and DSA public keys

GetSigner ( this key ) : ISigner
HasConstraint ( this aKey, Agent aType ) : bool
addConfirmConstraint ( this aKey ) : void

Adds Agent.KeyConstraintType.SSH_AGENT_CONSTRAIN_CONFIRM constraint to key

addLifetimeConstraint ( this aKey, uint aLifetime ) : void

Adds Agent.KeyConstraintType.SSH_AGENT_CONSTRAIN_LIFETIME constraint to key

Method Details

FormatSignature() public static method

public static FormatSignature ( this key, byte signature ) : byte[]
key this
signature byte
return byte[]

Get() public static method

public static Get ( this aKeyList, SshVersion aVersion, byte aPublicKeyBlob ) : ISshKey
aKeyList this
aVersion SshVersion
aPublicKeyBlob byte
return ISshKey

GetAuthorizedKeyString() public static method

public static GetAuthorizedKeyString ( this aKey ) : string
aKey this
return string

GetMD5Fingerprint() public static method

public static GetMD5Fingerprint ( this aKey ) : byte[]
aKey this
return byte[]

GetPublicKeyBlob() public static method

Gets OpenSsh formatted bytes from public key
Currently only supports RSA and DSA public keys
/// AsymmetricAlgorithm is not supported ///
public static GetPublicKeyBlob ( this aKey ) : byte[]
aKey this
return byte[]

GetSigner() public static method

public static GetSigner ( this key ) : ISigner
key this
return ISigner

HasConstraint() public static method

public static HasConstraint ( this aKey, Agent aType ) : bool
aKey this
aType Agent
return bool

addConfirmConstraint() public static method

Adds Agent.KeyConstraintType.SSH_AGENT_CONSTRAIN_CONFIRM constraint to key
public static addConfirmConstraint ( this aKey ) : void
aKey this
return void

addLifetimeConstraint() public static method

Adds Agent.KeyConstraintType.SSH_AGENT_CONSTRAIN_LIFETIME constraint to key
public static addLifetimeConstraint ( this aKey, uint aLifetime ) : void
aKey this
aLifetime uint
return void