Org.BouncyCastle.Ocsp.OcspUtilities.GetAlgorithmOid C# (CSharp) Метод

GetAlgorithmOid() статический приватный Метод

static private GetAlgorithmOid ( string algorithmName ) : DerObjectIdentifier
algorithmName string
Результат Org.BouncyCastle.Asn1.DerObjectIdentifier
		internal static DerObjectIdentifier GetAlgorithmOid(
			string algorithmName)
		{
			algorithmName = Platform.ToUpperInvariant(algorithmName);

            if (algorithms.Contains(algorithmName))
			{
				return (DerObjectIdentifier)algorithms[algorithmName];
			}

			return new DerObjectIdentifier(algorithmName);
		}

Usage Example

Пример #1
0
 public OcspReq Generate(string signingAlgorithm, AsymmetricKeyParameter privateKey, X509Certificate[] chain, SecureRandom random)
 {
     //IL_0008: Unknown result type (might be due to invalid IL or missing references)
     //IL_002f: Unknown result type (might be due to invalid IL or missing references)
     if (signingAlgorithm == null)
     {
         throw new ArgumentException("no signing algorithm specified");
     }
     try
     {
         DerObjectIdentifier algorithmOid = OcspUtilities.GetAlgorithmOid(signingAlgorithm);
         return(GenerateRequest(algorithmOid, privateKey, chain, random));
     }
     catch (ArgumentException)
     {
         throw new ArgumentException("unknown signing algorithm specified: " + signingAlgorithm);
     }
 }
All Usage Examples Of Org.BouncyCastle.Ocsp.OcspUtilities::GetAlgorithmOid