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