KeychainSecret( KeychainSecretName name, byte [] value) { Name = name; this.value = value; }
public KeychainSecret WithName(KeychainSecretName name) { name.Assert(nameof(name)); return(new KeychainSecret( name, value)); }
public static KeychainSecret Create( KeychainSecretName name, string value) { name.Assert(nameof(name)); ArgumentAssert.IsNotNull(value, nameof(value)); return(new KeychainSecret( name, value == null ? null : Keychain.Utf8.GetBytes(value))); }
public static KeychainSecret Create( KeychainSecretName name, byte [] value) { name.Assert(nameof(name)); ArgumentAssert.IsNotNull(value, nameof(value)); return(new KeychainSecret( name, value)); }
public static bool TryGetSecret(KeychainSecretName name, out KeychainSecret secret) => keychain.TryGetSecret(name, out secret);