C# Class Mono.Security.X509.PKCS12

Inheritance: ICloneable
Show file Open project: runefs/Marvin Class Usage Examples

Private Properties

Property Type Description
AddPrivateKey void
CertificateSafeBag Mono.Security.ASN1
Compare bool
CompareAsymmetricAlgorithm bool
Decode void
EncryptedContentInfo Mono.Security.PKCS7.ContentInfo
GetExistingParameters System.Security.Cryptography.DSAParameters
GetSymmetricAlgorithm SymmetricAlgorithm
KeyBagSafeBag Mono.Security.ASN1
LoadFile byte[]
MAC byte[]
Pkcs8ShroudedKeyBagSafeBag Mono.Security.ASN1
ReadSafeBag void
SecretBagSafeBag Mono.Security.ASN1

Public Methods

Method Description
AddCertificate ( Mono.Security.X509.X509Certificate cert ) : void
AddCertificate ( Mono.Security.X509.X509Certificate cert, IDictionary attributes ) : void
AddKeyBag ( AsymmetricAlgorithm aa ) : void
AddKeyBag ( AsymmetricAlgorithm aa, IDictionary attributes ) : void
AddPkcs8ShroudedKeyBag ( AsymmetricAlgorithm aa ) : void
AddPkcs8ShroudedKeyBag ( AsymmetricAlgorithm aa, IDictionary attributes ) : void
AddSecretBag ( byte secret ) : void
AddSecretBag ( byte secret, IDictionary attributes ) : void
Clone ( ) : object
Decrypt ( Mono.Security.PKCS7 ed ) : byte[]
Decrypt ( string algorithmOid, byte salt, int iterationCount, byte encryptedData ) : byte[]
Encrypt ( string algorithmOid, byte salt, int iterationCount, byte data ) : byte[]
GetAsymmetricAlgorithm ( IDictionary attrs ) : AsymmetricAlgorithm
GetAttributes ( AsymmetricAlgorithm aa ) : IDictionary
GetAttributes ( Mono.Security.X509.X509Certificate cert ) : IDictionary
GetBytes ( ) : byte[]
GetCertificate ( IDictionary attrs ) : Mono.Security.X509.X509Certificate
GetSecret ( IDictionary attrs ) : byte[]
LoadFromFile ( string filename ) : PKCS12
LoadFromFile ( string filename, string password ) : PKCS12
PKCS12 ( ) : System
PKCS12 ( byte data ) : System
PKCS12 ( byte data, byte password ) : System
PKCS12 ( byte data, string password ) : System
RemoveCertificate ( Mono.Security.X509.X509Certificate cert ) : void
RemoveCertificate ( Mono.Security.X509.X509Certificate cert, IDictionary attrs ) : void
RemoveKeyBag ( AsymmetricAlgorithm aa ) : void
RemovePkcs8ShroudedKeyBag ( AsymmetricAlgorithm aa ) : void
RemoveSecretBag ( byte secret ) : void
SaveToFile ( string filename ) : void

Private Methods

Method Description
AddPrivateKey ( PKCS8 pki ) : void
CertificateSafeBag ( Mono.Security.X509.X509Certificate x509, IDictionary attributes ) : Mono.Security.ASN1
Compare ( byte expected, byte actual ) : bool
CompareAsymmetricAlgorithm ( AsymmetricAlgorithm a1, AsymmetricAlgorithm a2 ) : bool
Decode ( byte data ) : void
EncryptedContentInfo ( Mono.Security.ASN1 safeBags, string algorithmOid ) : Mono.Security.PKCS7.ContentInfo
GetExistingParameters ( bool &found ) : DSAParameters
GetSymmetricAlgorithm ( string algorithmOid, byte salt, int iterationCount ) : SymmetricAlgorithm
KeyBagSafeBag ( AsymmetricAlgorithm aa, IDictionary attributes ) : Mono.Security.ASN1
LoadFile ( string filename ) : byte[]
MAC ( byte password, byte salt, int iterations, byte data ) : byte[]
Pkcs8ShroudedKeyBagSafeBag ( AsymmetricAlgorithm aa, IDictionary attributes ) : Mono.Security.ASN1
ReadSafeBag ( Mono.Security.ASN1 safeBag ) : void
SecretBagSafeBag ( byte secret, IDictionary attributes ) : Mono.Security.ASN1

Method Details

AddCertificate() public method

public AddCertificate ( Mono.Security.X509.X509Certificate cert ) : void
cert Mono.Security.X509.X509Certificate
return void

AddCertificate() public method

public AddCertificate ( Mono.Security.X509.X509Certificate cert, IDictionary attributes ) : void
cert Mono.Security.X509.X509Certificate
attributes IDictionary
return void

AddKeyBag() public method

public AddKeyBag ( AsymmetricAlgorithm aa ) : void
aa System.Security.Cryptography.AsymmetricAlgorithm
return void

AddKeyBag() public method

public AddKeyBag ( AsymmetricAlgorithm aa, IDictionary attributes ) : void
aa System.Security.Cryptography.AsymmetricAlgorithm
attributes IDictionary
return void

AddPkcs8ShroudedKeyBag() public method

public AddPkcs8ShroudedKeyBag ( AsymmetricAlgorithm aa ) : void
aa System.Security.Cryptography.AsymmetricAlgorithm
return void

AddPkcs8ShroudedKeyBag() public method

public AddPkcs8ShroudedKeyBag ( AsymmetricAlgorithm aa, IDictionary attributes ) : void
aa System.Security.Cryptography.AsymmetricAlgorithm
attributes IDictionary
return void

AddSecretBag() public method

public AddSecretBag ( byte secret ) : void
secret byte
return void

AddSecretBag() public method

public AddSecretBag ( byte secret, IDictionary attributes ) : void
secret byte
attributes IDictionary
return void

Clone() public method

public Clone ( ) : object
return object

Decrypt() public method

public Decrypt ( Mono.Security.PKCS7 ed ) : byte[]
ed Mono.Security.PKCS7
return byte[]

Decrypt() public method

public Decrypt ( string algorithmOid, byte salt, int iterationCount, byte encryptedData ) : byte[]
algorithmOid string
salt byte
iterationCount int
encryptedData byte
return byte[]

Encrypt() public method

public Encrypt ( string algorithmOid, byte salt, int iterationCount, byte data ) : byte[]
algorithmOid string
salt byte
iterationCount int
data byte
return byte[]

GetAsymmetricAlgorithm() public method

public GetAsymmetricAlgorithm ( IDictionary attrs ) : AsymmetricAlgorithm
attrs IDictionary
return System.Security.Cryptography.AsymmetricAlgorithm

GetAttributes() public method

public GetAttributes ( AsymmetricAlgorithm aa ) : IDictionary
aa System.Security.Cryptography.AsymmetricAlgorithm
return IDictionary

GetAttributes() public method

public GetAttributes ( Mono.Security.X509.X509Certificate cert ) : IDictionary
cert Mono.Security.X509.X509Certificate
return IDictionary

GetBytes() public method

public GetBytes ( ) : byte[]
return byte[]

GetCertificate() public method

public GetCertificate ( IDictionary attrs ) : Mono.Security.X509.X509Certificate
attrs IDictionary
return Mono.Security.X509.X509Certificate

GetSecret() public method

public GetSecret ( IDictionary attrs ) : byte[]
attrs IDictionary
return byte[]

LoadFromFile() static public method

static public LoadFromFile ( string filename ) : PKCS12
filename string
return PKCS12

LoadFromFile() static public method

static public LoadFromFile ( string filename, string password ) : PKCS12
filename string
password string
return PKCS12

PKCS12() public method

public PKCS12 ( ) : System
return System

PKCS12() public method

public PKCS12 ( byte data ) : System
data byte
return System

PKCS12() public method

public PKCS12 ( byte data, byte password ) : System
data byte
password byte
return System

PKCS12() public method

public PKCS12 ( byte data, string password ) : System
data byte
password string
return System

RemoveCertificate() public method

public RemoveCertificate ( Mono.Security.X509.X509Certificate cert ) : void
cert Mono.Security.X509.X509Certificate
return void

RemoveCertificate() public method

public RemoveCertificate ( Mono.Security.X509.X509Certificate cert, IDictionary attrs ) : void
cert Mono.Security.X509.X509Certificate
attrs IDictionary
return void

RemoveKeyBag() public method

public RemoveKeyBag ( AsymmetricAlgorithm aa ) : void
aa System.Security.Cryptography.AsymmetricAlgorithm
return void

RemovePkcs8ShroudedKeyBag() public method

public RemovePkcs8ShroudedKeyBag ( AsymmetricAlgorithm aa ) : void
aa System.Security.Cryptography.AsymmetricAlgorithm
return void

RemoveSecretBag() public method

public RemoveSecretBag ( byte secret ) : void
secret byte
return void

SaveToFile() public method

public SaveToFile ( string filename ) : void
filename string
return void