44 public override bool Equals(
object o)
47 if (publisher !=
null)
49 return PublicKeyEquals(m_cert, publisher.m_cert);
70 int num = publicKey.Length;
71 if (num != publicKey2.Length)
75 for (
int i = 0; i < num; i++)
77 if (publicKey[i] != publicKey2[i])
82 if (!keyAlgorithm.Equals(keyAlgorithm2))
86 num = keyAlgorithmParameters.Length;
87 if (keyAlgorithmParameters2.Length != num)
91 for (
int j = 0; j < num; j++)
93 if (keyAlgorithmParameters[j] != keyAlgorithmParameters2[j])
105 return m_cert.GetHashCode();
126 securityElement.
AddChild(
new SecurityElement(
"X509v3Certificate", (m_cert !=
null) ? m_cert.GetRawCertDataString() :
""));
127 return securityElement;
137 internal object Normalize()
override bool Equals(object o)
Compares the current T:System.Security.Policy.Publisher to the specified object for equivalence.
virtual string GetKeyAlgorithm()
Returns the key algorithm information for this X.509v3 certificate as a string.
The exception that is thrown when a null reference (Nothing in Visual Basic) is passed to a method th...
Provides the Authenticode X.509v3 digital signature of a code assembly as evidence for policy evaluat...
Provides a base class from which all objects to be used as evidence must derive.
object Copy()
Creates an equivalent copy of the T:System.Security.Policy.Publisher.
virtual byte [] GetKeyAlgorithmParameters()
Returns the key algorithm parameters for the X.509v3 certificate as an array of bytes.
Defines the method that creates a new identity permission.
void AddChild(SecurityElement child)
Adds a child element to the XML element.
Creates a stream whose backing store is memory.To browse the .NET Framework source code for this type...
override string ToString()
Returns a string representation of the current T:System.Security.Policy.Publisher.
IPermission CreateIdentityPermission(Evidence evidence)
Creates an identity permission that corresponds to the current instance of the T:System....
Represents the XML object model for encoding security objects. This class cannot be inherited.
override EvidenceBase Clone()
Creates a new object that is a copy of the current instance.
override int GetHashCode()
Gets the hash code of the current P:System.Security.Policy.Publisher.Certificate.
Defines methods implemented by permission types.
X509Certificate Certificate
Gets the publisher's Authenticode X.509v3 certificate.
Represents the identity of a software publisher. This class cannot be inherited.
Publisher(X509Certificate cert)
Initializes a new instance of the T:System.Security.Policy.Publisher class with the Authenticode X....
virtual byte [] GetPublicKey()
Returns the public key for the X.509v3 certificate as an array of bytes.
Defines the set of information that constitutes input to security policy decisions....
void AddAttribute(string name, string value)
Adds a name/value attribute to an XML element.
Specifies that the class can be serialized.
override long Position
Gets or sets the current position within the stream.
override string ToString()
Produces a string representation of an XML element and its constituent attributes,...
Provides methods that help you use X.509 v.3 certificates.