Goedel.Cryptography.Jose.Key.GetPrivate C# (CSharp) Method

GetPrivate() public static method

Return the private portion of the keypair.
public static GetPrivate ( KeyPair KeyPair ) : Key
KeyPair Goedel.Cryptography.KeyPair The key pair.
return Key
        public static Key GetPrivate(KeyPair KeyPair) {
            if (KeyPair as RSAKeyPair != null) {
                return new PrivateKeyRSA(KeyPair as RSAKeyPair);
                }
            return null;
            }