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

GetPublic() public static method

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