77 references to SubjectIdentifierType
System.Security (77)
system\security\cryptography\pkcs\envelopedpkcs7.cs (10)
31
private
SubjectIdentifierType
m_recipientIdentifierType;
77
this(
SubjectIdentifierType
.IssuerAndSerialNumber,
83
this(
SubjectIdentifierType
.IssuerAndSerialNumber, contentInfo,
87
public EnvelopedCms (
SubjectIdentifierType
recipientIdentifierType, ContentInfo contentInfo) :
94
this(
SubjectIdentifierType
.IssuerAndSerialNumber, contentInfo, encryptionAlgorithm) {
98
public EnvelopedCms (
SubjectIdentifierType
recipientIdentifierType, ContentInfo contentInfo, AlgorithmIdentifier encryptionAlgorithm) {
107
m_version = recipientIdentifierType ==
SubjectIdentifierType
.SubjectKeyIdentifier ? 2 : 0;
396
(recipient.RecipientIdentifierType ==
SubjectIdentifierType
.SubjectKeyIdentifier))
748
if (recipient.RecipientIdentifierType ==
SubjectIdentifierType
.SubjectKeyIdentifier) {
929
if (recipient.RecipientIdentifierType ==
SubjectIdentifierType
.SubjectKeyIdentifier) {
system\security\cryptography\pkcs\pkcs7recipient.cs (10)
18
private
SubjectIdentifierType
m_recipientIdentifierType;
27
public CmsRecipient (X509Certificate2 certificate):this(
SubjectIdentifierType
.IssuerAndSerialNumber, certificate){}
29
public CmsRecipient (
SubjectIdentifierType
recipientIdentifierType, X509Certificate2 certificate) {
37
public
SubjectIdentifierType
RecipientIdentifierType {
53
private void Reset (
SubjectIdentifierType
recipientIdentifierType, X509Certificate2 certificate) {
58
case
SubjectIdentifierType
.Unknown:
59
recipientIdentifierType =
SubjectIdentifierType
.IssuerAndSerialNumber;
61
case
SubjectIdentifierType
.IssuerAndSerialNumber:
63
case
SubjectIdentifierType
.SubjectKeyIdentifier:
89
public CmsRecipientCollection (
SubjectIdentifierType
recipientIdentifierType, X509Certificate2Collection certificates) {
system\security\cryptography\pkcs\pkcs7signer.cs (17)
18
private
SubjectIdentifierType
m_signerIdentifierType;
32
public CmsSigner () : this(
SubjectIdentifierType
.IssuerAndSerialNumber, null) {}
34
public CmsSigner (
SubjectIdentifierType
signerIdentifierType) : this (signerIdentifierType, null) {}
36
public CmsSigner (X509Certificate2 certificate) : this(
SubjectIdentifierType
.IssuerAndSerialNumber, certificate) {}
39
public CmsSigner (CspParameters parameters) : this(
SubjectIdentifierType
.SubjectKeyIdentifier,
45
public CmsSigner (
SubjectIdentifierType
signerIdentifierType, X509Certificate2 certificate) {
47
case
SubjectIdentifierType
.Unknown:
48
this.SignerIdentifierType =
SubjectIdentifierType
.IssuerAndSerialNumber;
51
case
SubjectIdentifierType
.IssuerAndSerialNumber:
55
case
SubjectIdentifierType
.SubjectKeyIdentifier:
59
case
SubjectIdentifierType
.NoSignature:
64
this.SignerIdentifierType =
SubjectIdentifierType
.IssuerAndSerialNumber;
81
public
SubjectIdentifierType
SignerIdentifierType {
86
if (value !=
SubjectIdentifierType
.IssuerAndSerialNumber &&
87
value !=
SubjectIdentifierType
.SubjectKeyIdentifier &&
88
value !=
SubjectIdentifierType
.NoSignature)
91
if (m_dummyCert && value !=
SubjectIdentifierType
.SubjectKeyIdentifier)
system\security\cryptography\pkcs\pkcsmisc.cs (14)
36
private
SubjectIdentifierType
m_type;
45
internal SubjectIdentifier (
SubjectIdentifierType
type, Object value) {
66
Reset(
SubjectIdentifierType
.NoSignature, null);
76
m_type =
SubjectIdentifierType
.SubjectKeyIdentifier;
103
Reset(
SubjectIdentifierType
.SubjectKeyIdentifier, X509Utils.EncodeHexString(ski));
118
Reset(
SubjectIdentifierType
.IssuerAndSerialNumber, issuerSerial);
126
Reset(
SubjectIdentifierType
.IssuerAndSerialNumber, issuerSerial);
131
Reset(
SubjectIdentifierType
.SubjectKeyIdentifier, X509Utils.EncodeHexString(ski));
138
public
SubjectIdentifierType
Type {
154
internal void Reset (
SubjectIdentifierType
type, Object value) {
156
case
SubjectIdentifierType
.NoSignature:
157
case
SubjectIdentifierType
.Unknown:
159
case
SubjectIdentifierType
.IssuerAndSerialNumber:
164
case
SubjectIdentifierType
.SubjectKeyIdentifier:
system\security\cryptography\pkcs\pkcsutils.cs (5)
489
internal static CmsRecipientCollection SelectRecipients (
SubjectIdentifierType
recipientIdentifierType) {
735
if (signer.SignerIdentifierType ==
SubjectIdentifierType
.NoSignature) {
798
if (signer.SignerIdentifierType ==
SubjectIdentifierType
.SubjectKeyIdentifier) {
1009
case
SubjectIdentifierType
.IssuerAndSerialNumber:
1017
case
SubjectIdentifierType
.SubjectKeyIdentifier:
system\security\cryptography\pkcs\recipientinfo.cs (2)
274
if (this.RecipientIdentifier.Type !=
SubjectIdentifierType
.SubjectKeyIdentifier)
289
if (this.RecipientIdentifier.Type !=
SubjectIdentifierType
.SubjectKeyIdentifier)
system\security\cryptography\pkcs\signedpkcs7.cs (13)
28
private
SubjectIdentifierType
m_signerIdentifierType;
37
this(
SubjectIdentifierType
.IssuerAndSerialNumber,
42
public SignedCms (
SubjectIdentifierType
signerIdentifierType) :
48
public SignedCms (ContentInfo contentInfo) : this(
SubjectIdentifierType
.IssuerAndSerialNumber, contentInfo, false) {}
50
public SignedCms (
SubjectIdentifierType
signerIdentifierType, ContentInfo contentInfo) : this(signerIdentifierType, contentInfo, false) {}
52
public SignedCms (ContentInfo contentInfo, bool detached) : this(
SubjectIdentifierType
.IssuerAndSerialNumber, contentInfo, detached) {}
55
public SignedCms (
SubjectIdentifierType
signerIdentifierType, ContentInfo contentInfo, bool detached) {
63
if (signerIdentifierType !=
SubjectIdentifierType
.SubjectKeyIdentifier &&
64
signerIdentifierType !=
SubjectIdentifierType
.IssuerAndSerialNumber &&
65
signerIdentifierType !=
SubjectIdentifierType
.NoSignature) {
66
signerIdentifierType =
SubjectIdentifierType
.IssuerAndSerialNumber;
172
if (
SubjectIdentifierType
.NoSignature == signer.SignerIdentifierType) {
461
if (signer.SignerIdentifier.Type ==
SubjectIdentifierType
.NoSignature)
system\security\cryptography\pkcs\signerinfo.cs (6)
149
ComputeCounterSignature(new CmsSigner(m_signedCms.Version == 2 ?
SubjectIdentifierType
.SubjectKeyIdentifier :
SubjectIdentifierType
.IssuerAndSerialNumber));
193
if ((counterSignerInfo.SignerIdentifier.Type ==
SubjectIdentifierType
.IssuerAndSerialNumber) &&
194
(counterSignerInfo2.SignerIdentifier.Type ==
SubjectIdentifierType
.IssuerAndSerialNumber)) {
204
else if ((counterSignerInfo.SignerIdentifier.Type ==
SubjectIdentifierType
.SubjectKeyIdentifier) &&
205
(counterSignerInfo2.SignerIdentifier.Type ==
SubjectIdentifierType
.SubjectKeyIdentifier)) {